pluskid / Mocha.jl

Deep Learning framework for Julia
Other
1.29k stars 254 forks source link

Allow users to override the choice of compiler for native extensions #193

Closed staticfloat closed 8 years ago

staticfloat commented 8 years ago

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.

staticfloat commented 8 years ago

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").

pluskid commented 8 years ago

Thanks a lot!