Merge pull request #204875 from lopsided98/liblapack-cross
liblapack: fix cross-compilation
This commit is contained in:
commit
68bd364831
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,11 @@ stdenv.mkDerivation rec {
|
|||
"-DCBLAS=ON"
|
||||
"-DBUILD_TESTING=ON"
|
||||
] ++ lib.optional shared "-DBUILD_SHARED_LIBS=ON"
|
||||
++ lib.optional blas64 "-DBUILD_INDEX64=ON";
|
||||
++ lib.optional blas64 "-DBUILD_INDEX64=ON"
|
||||
# Tries to run host platform binaries during the build
|
||||
# Will likely be disabled by default in 3.12, see:
|
||||
# https://github.com/Reference-LAPACK/lapack/issues/757
|
||||
++ lib.optional (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) "-DTEST_FORTRAN_COMPILER=OFF";
|
||||
|
||||
passthru = { inherit blas64; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue