pythonPackages.tensorflow: fix for darwin

This commit is contained in:
Dmitry Kalinkin 2021-11-08 19:57:56 -05:00
parent 3119a60230
commit 85ec7e8756
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -283,6 +283,7 @@ let
bazelBuildFlags = [
"--config=opt" # optimize using the flags set in the configure phase
]
++ lib.optionals stdenv.cc.isClang [ "--cxxopt=-x" "--cxxopt=c++" "--host_cxxopt=-x" "--host_cxxopt=c++" ]
++ lib.optionals (mklSupport) [ "--config=mkl" ];
bazelTarget = "//tensorflow/tools/pip_package:build_pip_package //tensorflow/tools/lib_package:libtensorflow";