Skip to content

Commit e177c9a

Browse files
kateinoigakukunMaxDesiatov
authored andcommitted
[WASM] Propagate -static-stdlib for wasm32
1 parent 0af4d7a commit e177c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Build/BuildPlan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ public final class ProductBuildDescription {
11051105
if buildParameters.shouldLinkStaticSwiftStdlib {
11061106
if buildParameters.triple.isDarwin() {
11071107
diagnostics.emit(.swiftBackDeployError)
1108-
} else if buildParameters.triple.isLinux() {
1108+
} else if buildParameters.triple.isLinux() || buildParameters.triple.arch == .wasm32 {
11091109
args += ["-static-stdlib"]
11101110
}
11111111
}

0 commit comments

Comments
 (0)