Skip to content

Commit

Permalink
swift: disable zerocallusedregs hardening
Browse files Browse the repository at this point in the history
Fixes: #320900
  • Loading branch information
corngood committed Jul 12, 2024
1 parent e505595 commit a5373e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/compilers/swift/compiler/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ 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";

configurePhase = ''
export SWIFT_SOURCE_ROOT="$PWD"
mkdir -p ../build
Expand Down

0 comments on commit a5373e0

Please sign in to comment.