julia_18: set JULIA_CPU_TARGET to follow upstream binary releases

This commit is contained in:
Nick Cao 2022-12-16 10:08:17 +08:00
parent f4e15c3d09
commit 0fdda5326f
No known key found for this signature in database

View File

@ -106,6 +106,11 @@ stdenv.mkDerivation rec {
"USE_SYSTEM_LIBWHICH=1"
"USE_SYSTEM_ZLIB=1" # version checks, but the system zlib is used anyway
"USE_SYSTEM_P7ZIP=1"
] ++ lib.optionals stdenv.isx86_64 [
# https://github.com/JuliaCI/julia-buildbot/blob/master/master/inventory.py
"JULIA_CPU_TARGET=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"
] ++ lib.optionals stdenv.isAarch64 [
"JULIA_CPU_TERGET=generic;cortex-a57;thunderx2t99;armv8.2-a,crypto,fullfp16,lse,rdm"
];
doInstallCheck = true;