diff options
author | Robert Scott <code@humanleg.org.uk> | 2020-01-04 23:10:16 +0000 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2020-01-04 23:10:16 +0000 |
commit | 951fb0472af179c6d9c93e1bb26f8ccdc04a0766 (patch) | |
tree | dbb4c22f5010887c064e271b5912aa5f0f5c69ab | |
parent | cef68c4580f1d5bb648d0c7ce969f696fa1a2459 (diff) |
pythonPackages.pybind11: fix for clang
default clang is still not happy with c++17's sized and aligned deallocations
-rw-r--r-- | pkgs/development/python-modules/pybind11/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix index 76e60fda86a87..a8c66a49fb8ce 100644 --- a/pkgs/development/python-modules/pybind11/default.nix +++ b/pkgs/development/python-modules/pybind11/default.nix @@ -1,4 +1,5 @@ -{ lib +{ stdenv +, lib , buildPythonPackage , fetchFromGitHub , fetchpatch @@ -28,7 +29,7 @@ buildPythonPackage rec { cmakeFlags = [ "-DEIGEN3_INCLUDE_DIR=${eigen}/include/eigen3" - ] ++ lib.optionals (python.isPy3k) [ + ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ # Enable some tests only on Python 3. The "test_string_view" test # 'testTypeError: string_view16_chars(): incompatible function arguments' # fails on Python 2. |