Skip to content

Commit 86e346f

Browse files
committed
Fix -lc++ for WASI
1 parent 7f22e48 commit 86e346f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/SwiftBuildSupport/PackagePIFProjectBuilder+Modules.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ extension PackagePIFProjectBuilder {
567567
for platform in ProjectModel.BuildSettings.Platform.allCases {
568568
// darwin & freebsd
569569
switch platform {
570-
case .macOS, .macCatalyst, .iOS, .watchOS, .tvOS, .xrOS, .driverKit, .freebsd, .emscripten:
570+
case .macOS, .macCatalyst, .iOS, .watchOS, .tvOS, .xrOS, .driverKit, .freebsd, .emscripten, .wasi:
571571
impartedSettings[.OTHER_LDFLAGS, platform] = ["-lc++", "$(inherited)"]
572-
case .android, .linux, .wasi, .openbsd:
572+
case .android, .linux, .openbsd:
573573
impartedSettings[.OTHER_LDFLAGS, platform] = ["-lstdc++", "$(inherited)"]
574574
case .windows, ._iOSDevice:
575575
break

0 commit comments

Comments
 (0)