pythonPackages.pybind11: fix for clang

default clang is still not happy with c++17's sized and aligned
deallocations
This commit is contained in:
Robert Scott 2020-01-04 23:10:16 +00:00
parent cef68c4580
commit 951fb0472a

View File

@ -1,4 +1,5 @@
{ lib { stdenv
, lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
@ -28,7 +29,7 @@ buildPythonPackage rec {
cmakeFlags = [ cmakeFlags = [
"-DEIGEN3_INCLUDE_DIR=${eigen}/include/eigen3" "-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 # Enable some tests only on Python 3. The "test_string_view" test
# 'testTypeError: string_view16_chars(): incompatible function arguments' # 'testTypeError: string_view16_chars(): incompatible function arguments'
# fails on Python 2. # fails on Python 2.