Merge pull request #188226 from yvesf/fix-crosscompile-pybind11
This commit is contained in:
@@ -28,8 +28,6 @@
|
||||
# We must build at least one type of libraries
|
||||
assert enableShared || enableStatic;
|
||||
|
||||
# Python isn't supported when cross-compiling
|
||||
assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
assert enableNumpy -> enablePython;
|
||||
|
||||
# Boost <1.69 can't be built on linux with clang >8, because pth was removed
|
||||
|
||||
@@ -34,6 +34,7 @@ buildPythonPackage rec {
|
||||
"-DBoost_INCLUDE_DIR=${lib.getDev boost}/include"
|
||||
"-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3"
|
||||
"-DBUILD_TESTING=on"
|
||||
"-DPYTHON_EXECUTABLE:FILEPATH=${python.pythonForBuild.interpreter}"
|
||||
] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [
|
||||
"-DPYBIND11_CXX_STANDARD=-std=c++17"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user