Merge pull request #76327 from veprbl/pr/theano_darwin_fix

pythonPackages.Theano: fix darwin build
This commit is contained in:
Dmitry Kalinkin 2019-12-24 12:51:04 -05:00 committed by GitHub
commit 613705835f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 );