Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
17 lines
606 B
Diff
17 lines
606 B
Diff
Prevents a user-visible warning on every compilation:
|
|
|
|
ld: warning: directory not found for option '-L.../MacOSX11.0.sdk/usr/lib/swift'
|
|
|
|
--- a/Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift
|
|
+++ b/Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift
|
|
@@ -50,7 +50,9 @@ extension Toolchain {
|
|
result.append(sdkPath.appending(components: "System", "iOSSupport", "usr", "lib", "swift"))
|
|
}
|
|
|
|
+ if sdkPath.absolutePath?.pathString.starts(with: "@storeDir@") == false {
|
|
result.append(sdkPath.appending(components: "usr", "lib", "swift"))
|
|
+ }
|
|
}
|
|
|
|
return result
|