Commit f90df7f3 authored by qbisi's avatar qbisi
Browse files

superlu: fix build with clang21

parent 04e483ed
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -34,6 +34,11 @@ stdenv.mkDerivation (finalAttrs: {
    })
  ];

  # Prevent clang from crashing when compiling slatms.c from SuperLU’s matgen test code.
  postPatch = lib.optionalString stdenv.cc.isClang ''
    echo 'target_compile_options(matgen PRIVATE -fno-vectorize)' >> TESTING/MATGEN/CMakeLists.txt
  '';

  nativeBuildInputs = [
    cmake
    ninja