git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pybind11: fix for clang

default clang is still not happy with c++17's sized and aligned deallocations

commit951fb0472af179c6d9c93e1bb26f8ccdc04a0766 authorRobert Scott <code@humanleg.org.uk> dateSat 4 Jan 2020, 23:10 (7 years ago) parentcef68c4
1 file changed+3−2
pkgs/development/python-modules/pybind11/default.nix+3−2
pkgs/development/python-modules/pybind11/default.nix+3−2
@@ -1,4 +1,5 @@
1−{ lib
1+{ stdenv
2+, lib
23, buildPythonPackage
34, fetchFromGitHub
45, fetchpatch
@@ -28,7 +29,7 @@ buildPythonPackage rec {
2829
2930 cmakeFlags = [
3031 "-DEIGEN3_INCLUDE_DIR=${eigen}/include/eigen3"
31− ] ++ lib.optionals (python.isPy3k) [
32+ ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [
3233 # Enable some tests only on Python 3. The "test_string_view" test
3334 # 'testTypeError: string_view16_chars(): incompatible function arguments'
3435 # fails on Python 2.