With this change, users can set the CXX environment variable to tell Mocha which C++ compiler to use for compiling the native extension. This is particularly useful on OSX, as GCC 5 now installs itself as gcc-5 and g++-5 instead of overwriting the gcc and g++ commands that natively point to clang.
The way I've been doing it is by installing gcc from Homebrew, and then running MOCHA_FORCE_OMP=true CXX=g++-5 julia and then running Pkg.build("Mocha").
With this change, users can set the
CXX
environment variable to tellMocha
which C++ compiler to use for compiling the native extension. This is particularly useful on OSX, as GCC 5 now installs itself asgcc-5
andg++-5
instead of overwriting thegcc
andg++
commands that natively point toclang
.