Merge pull request #166093 from idontgetoutmuch/sundials-for-M1

Fix SUNDIALS for macOS M1
This commit is contained in:
Domen Kožar 2022-04-20 09:41:06 +01:00 committed by GitHub
commit 5ab47f589a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,19 @@ stdenv.mkDerivation rec {
)]
;
# disable stackprotector on aarch64-darwin for now
# https://github.com/NixOS/nixpkgs/issues/127608
#
# build error:
#
# /private/tmp/nix-build-sundials-5.7.0.drv-0/ccD2dUtR.s:21:15: error: index must be an integer in range [-256, 255].
# ldr x0, [x0, ___stack_chk_guard];momd
# ^
# /private/tmp/nix-build-sundials-5.7.0.drv-0/ccD2dUtR.s:46:15: error: index must be an integer in range [-256, 255].
# ldr x0, [x0, ___stack_chk_guard];momd
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
doCheck = true;
checkTarget = "test";