pythonPackages.Theano: fix darwin build
This only formally fixes the name of the compiler. Theano appears to be working on darwin after this.
This commit is contained in:
parent
3bb44f0f9d
commit
d4f1fa709c
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ let
|
|||
'';
|
||||
|
||||
# Theano spews warnings and disabled flags if the compiler isn't named g++
|
||||
cxx_compiler = wrapped "g++" "\\$HOME/.theano"
|
||||
cxx_compiler_name =
|
||||
if stdenv.cc.isGNU then "g++" else
|
||||
if stdenv.cc.isClang then "clang++" else
|
||||
throw "Unknown C++ compiler";
|
||||
cxx_compiler = wrapped cxx_compiler_name "\\$HOME/.theano"
|
||||
( stdenv.lib.optional cudaSupport libgpuarray_
|
||||
++ stdenv.lib.optional cudnnSupport cudnn );
|
||||
|
||||
|
|
Loading…
Reference in a new issue