Revert "python3Packages.numpy: temporarily avoid rebuild on !isClang"

This reverts commit 7ea07d2c0c.
This commit is contained in:
Vladimír Čunát 2023-07-20 10:28:02 +02:00
parent 391118666c
commit fe0bdcd1c6
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -39,7 +39,7 @@ let
};
};
};
in buildPythonPackage (rec {
in buildPythonPackage rec {
pname = "numpy";
version = "1.24.2";
format = "setuptools";
@ -91,6 +91,9 @@ in buildPythonPackage (rec {
nativeBuildInputs = [ gfortran cython ];
buildInputs = [ blas lapack ];
# Causes `error: argument unused during compilation: '-fno-strict-overflow'` due to `-Werror`.
hardeningDisable = lib.optionals stdenv.cc.isClang [ "strictoverflow" ];
# we default openblas to build with 64 threads
# if a machine has more than 64 threads, it will segfault
# see https://github.com/xianyi/OpenBLAS/issues/2993
@ -137,7 +140,4 @@ in buildPythonPackage (rec {
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
} // lib.optionalAttrs stdenv.cc.isClang {
# Causes `error: argument unused during compilation: '-fno-strict-overflow'` due to `-Werror`.
hardeningDisable = [ "strictoverflow" ];
})
}