Skip to content

Commit 2768418

Browse files
authored
Use LinuxMain on all platforms except Darwin (#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 ffa477c commit 2768418

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
@@ -1207,7 +1207,7 @@ public class BuildPlan {
12071207
_ buildParameters: BuildParameters,
12081208
_ graph: PackageGraph
12091209
) throws -> [(ResolvedProduct, SwiftTargetBuildDescription)] {
1210-
guard buildParameters.triple.isLinux() else {
1210+
guard !buildParameters.triple.isDarwin() else {
12111211
return []
12121212
}
12131213

@@ -1532,7 +1532,7 @@ public class BuildPlan {
15321532
}
15331533
}
15341534

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

0 commit comments

Comments
 (0)