Skip to content

Commit a36331a

Browse files
MaxDesiatovkateinoigakukun
authored andcommitted
Use LinuxMain on all platforms except Darwin (swiftlang#2734)
* Guard planLinuxMain only on Darwin platforms LinuxMain is also used to run tests on WebAssembly/WASI (and potentially on Android, Windows etc) * Append from linuxMainMap w/ all non-Darwin triples
1 parent 88c12e9 commit a36331a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Build/BuildPlan.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ public class BuildPlan {
12051205
_ buildParameters: BuildParameters,
12061206
_ graph: PackageGraph
12071207
) throws -> [(ResolvedProduct, SwiftTargetBuildDescription)] {
1208-
guard buildParameters.triple.isLinux() else {
1208+
guard !buildParameters.triple.isDarwin() else {
12091209
return []
12101210
}
12111211

@@ -1530,7 +1530,7 @@ public class BuildPlan {
15301530
}
15311531
}
15321532

1533-
if buildParameters.triple.isLinux() {
1533+
if !buildParameters.triple.isDarwin() {
15341534
if product.type == .test {
15351535
linuxMainMap[product].map{ staticTargets.append($0) }
15361536
}

0 commit comments

Comments
 (0)