From b4bfb990484c0abda144d4f113a8287110408725 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 12 Sep 2024 18:37:08 +0100 Subject: [PATCH] swift: disable `zerocallusedregs` on all AArch64 --- pkgs/development/compilers/swift/compiler/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index e4a15321fb09..d3e2017958fd 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -392,7 +392,7 @@ in stdenv.mkDerivation { ''; # > clang-15-unwrapped: error: unsupported option '-fzero-call-used-regs=used-gpr' for target 'arm64-apple-macosx10.9.0' - hardeningDisable = lib.optional stdenv.isDarwin "zerocallusedregs"; + hardeningDisable = lib.optional stdenv.isAarch64 "zerocallusedregs"; configurePhase = '' export SWIFT_SOURCE_ROOT="$PWD"