Skip to content

Commit 798fa21

Browse files
committed
Revert 42fc98e.
This reapplies -sdk universally. See swiftlang#2617.
1 parent cd060ff commit 798fa21

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/Workspace/UserToolchain.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,9 @@ public final class UserToolchain: Toolchain {
239239

240240
// Use the triple from destination or compute the host triple using swiftc.
241241
self.triple = destination.target ?? Triple.getHostTriple(usingSwiftCompiler: swiftCompilers.compile)
242-
self.extraSwiftCFlags = (triple.isDarwin()
243-
? ["-sdk", destination.sdk.pathString]
244-
: [])
245-
+ destination.extraSwiftCFlags
242+
self.extraSwiftCFlags = [
243+
"-sdk", destination.sdk.pathString
244+
] + destination.extraSwiftCFlags
246245

247246
self.extraCCFlags = [
248247
triple.isDarwin() ? "-isysroot" : "--sysroot", destination.sdk.pathString

0 commit comments

Comments
 (0)