We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd060ff commit 798fa21Copy full SHA for 798fa21
Sources/Workspace/UserToolchain.swift
@@ -239,10 +239,9 @@ public final class UserToolchain: Toolchain {
239
240
// Use the triple from destination or compute the host triple using swiftc.
241
self.triple = destination.target ?? Triple.getHostTriple(usingSwiftCompiler: swiftCompilers.compile)
242
- self.extraSwiftCFlags = (triple.isDarwin()
243
- ? ["-sdk", destination.sdk.pathString]
244
- : [])
245
- + destination.extraSwiftCFlags
+ self.extraSwiftCFlags = [
+ "-sdk", destination.sdk.pathString
+ ] + destination.extraSwiftCFlags
246
247
self.extraCCFlags = [
248
triple.isDarwin() ? "-isysroot" : "--sysroot", destination.sdk.pathString
0 commit comments