Merge #58589: openblas: fix aarch64 build
This commit is contained in:
commit
e1f55599cc
|
@ -127,7 +127,12 @@ stdenv.mkDerivation rec {
|
||||||
CROSS = stdenv.hostPlatform != stdenv.buildPlatform;
|
CROSS = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
HOSTCC = "cc";
|
HOSTCC = "cc";
|
||||||
# Makefile.system only checks defined status
|
# Makefile.system only checks defined status
|
||||||
NO_BINARY_MODE = toString (stdenv.hostPlatform != stdenv.buildPlatform);
|
# This seems to be a bug in the openblas Makefile:
|
||||||
|
# on x86_64 it expects NO_BINARY_MODE=
|
||||||
|
# but on aarch64 it expects NO_BINARY_MODE=0
|
||||||
|
NO_BINARY_MODE = if stdenv.isx86_64
|
||||||
|
then toString (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
|
else stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
});
|
});
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
Loading…
Reference in a new issue