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 a365934 commit 3f140d7Copy full SHA for 3f140d7
Sources/TSCUtility/Triple.swift
@@ -224,7 +224,7 @@ extension Triple {
224
case .windows:
225
return ".dll"
226
case .wasi:
227
- fatalError("WebAssembly/WASI doesn't support dynamic library yet")
+ return ".wasm"
228
}
229
230
Tests/TSCUtilityTests/TripleTests.swift
@@ -43,4 +43,12 @@ class TripleTests : XCTestCase {
43
let intelMacOSTriple = try Triple("x86_64-apple-macos")
44
XCTAssertNotEqual(macOSTriple, intelMacOSTriple)
45
46
+
47
+ func testWASI() throws {
48
+ let wasi = try Triple("wasm32-unknown-wasi")
49
50
+ // WASI dynamic libraries are only experimental,
51
+ // but SwiftPM requires this property not to crash.
52
+ _ = wasi.dynamicLibraryExtension
53
+ }
54
0 commit comments