superlu: fix darwin (#367110)
This commit is contained in:
@@ -45,10 +45,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
propagatedBuildInputs = [ blas ];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "enable_fortran" true)
|
||||
];
|
||||
cmakeFlags =
|
||||
[
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "enable_fortran" true)
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# prevent cmake from using Accelerate, which causes tests to segfault
|
||||
# https://github.com/xiaoyeli/superlu/issues/155
|
||||
"-DBLA_VENDOR=Generic"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user