xsimd: fix cross compilation, enable strictDeps

This commit is contained in:
Colin 2024-06-20 13:19:58 +00:00 committed by superherointj
parent 667f4bf852
commit a6894fba42

View File

@ -28,10 +28,17 @@ stdenv.mkDerivation (finalAttrs: {
./disable-test_error_gamma.patch
];
# strictDeps raises the chance that xsimd will be able to be cross compiled
strictDeps = true;
nativeBuildInputs = [
cmake
];
buildInputs = [
doctest
];
cmakeFlags = [
# Always build the tests, even if not running them, because testing whether
# they can be built is a test in itself.
@ -39,9 +46,6 @@ stdenv.mkDerivation (finalAttrs: {
];
doCheck = true;
nativeCheckInputs = [
doctest
];
checkTarget = "xtest";
meta = with lib; {