Merge pull request #188226 from yvesf/fix-crosscompile-pybind11

This commit is contained in:
Sandro
2022-08-28 13:08:58 +02:00
committed by GitHub
2 changed files with 1 additions and 2 deletions
@@ -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"
];