Skip to content

Commit 3a81f51

Browse files
authored
Merge pull request #326588 from corngood/swift
swift: fix build and mark as unbroken on darwin
2 parents b86d37a + 514d22d commit 3a81f51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/development/compilers/swift/compiler/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ in stdenv.mkDerivation {
364364
''}
365365
'';
366366

367+
# > clang-15-unwrapped: error: unsupported option '-fzero-call-used-regs=used-gpr' for target 'arm64-apple-macosx10.9.0'
368+
hardeningDisable = lib.optional stdenv.isDarwin "zerocallusedregs";
369+
367370
configurePhase = ''
368371
export SWIFT_SOURCE_ROOT="$PWD"
369372
mkdir -p ../build
@@ -702,7 +705,6 @@ in stdenv.mkDerivation {
702705
maintainers = with lib.maintainers; [ dtzWill trepetti dduan trundle stephank ];
703706
license = lib.licenses.asl20;
704707
platforms = with lib.platforms; linux ++ darwin;
705-
broken = stdenv.isDarwin;
706708
# Swift doesn't support 32-bit Linux, unknown on other platforms.
707709
badPlatforms = lib.platforms.i686;
708710
timeout = 86400; # 24 hours.

0 commit comments

Comments
 (0)