superlu: fix build with clang21

This commit is contained in:
qbisi
2025-10-05 23:59:25 +08:00
parent 04e483ed80
commit f90df7f3ce
+5
View File
@@ -34,6 +34,11 @@ stdenv.mkDerivation (finalAttrs: {
})
];
# Prevent clang from crashing when compiling slatms.c from SuperLUs matgen test code.
postPatch = lib.optionalString stdenv.cc.isClang ''
echo 'target_compile_options(matgen PRIVATE -fno-vectorize)' >> TESTING/MATGEN/CMakeLists.txt
'';
nativeBuildInputs = [
cmake
ninja