swiftPackages.swift-unwrapped: fix darwin build

This commit is contained in:
sempiternal-aurora
2026-07-02 17:43:33 +10:00
parent f3c69aae50
commit 401b87c97d
2 changed files with 12 additions and 1 deletions
@@ -37,6 +37,8 @@
DarwinTools,
apple-sdk_14,
darwinMinVersionHook,
# TODO: Clean up on `staging`
lld,
}:
let
@@ -252,6 +254,8 @@ stdenv.mkDerivation {
DarwinTools # sw_vers
fixDarwinDylibNames
cctools.libtool
# TODO: Clean up on `staging`
lld
];
buildInputs = [
@@ -562,6 +566,12 @@ stdenv.mkDerivation {
# Fixed in: https://github.com/apple/swift/commit/84083afef1de5931904d5c815d53856cdb3fb232
cmakeFlags="
-GNinja
${
# Fix for ld64 hardening issue
#
# TODO: Clean up on staging
lib.optionalString stdenv.hostPlatform.isDarwin "-DCMAKE_LINKER_TYPE=LLD"
}
-DBOOTSTRAPPING_MODE=BOOTSTRAPPING${lib.optionalString stdenv.hostPlatform.isDarwin "-WITH-HOSTLIBS"}
-DSWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING=ON
-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=ON
+2 -1
View File
@@ -15,7 +15,8 @@ let
inherit stdenv;
swift-unwrapped = callPackage ./compiler {
inherit (llvmPackages) stdenv;
# TODO: Clean up on `staging`
inherit (llvmPackages) stdenv lld;
inherit (darwin) DarwinTools sigtool;
};