From bc4bb814948590e98f2e37da475355ba4edc709d Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 1 Oct 2025 12:48:14 +0100 Subject: [PATCH 1/3] Add `enable_wasm_sdk_build: true` to `pull_request.yml` --- .github/workflows/pull_request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index cd669b492..0df6f3b8b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,6 +12,7 @@ jobs: linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' enable_windows_checks: false enable_macos_checks: false + enable_wasm_sdk_build: true soundness: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main From 84b053d7d59413962621307b36663d1e4ad341fc Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Fri, 10 Oct 2025 18:01:34 +0100 Subject: [PATCH 2/3] Add `os(WASI)` to `TestSupport.swift` --- Sources/TestSupport/TestSupport.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TestSupport/TestSupport.swift b/Sources/TestSupport/TestSupport.swift index fc9353f32..d720aac4a 100644 --- a/Sources/TestSupport/TestSupport.swift +++ b/Sources/TestSupport/TestSupport.swift @@ -15,7 +15,7 @@ import XCTest // *without* `-disable-availability-checking` to ensure the #available check is // not compiled into a no-op. -#if os(Linux) || os(Android) || os(Windows) +#if os(Linux) || os(Android) || os(Windows) || os(WASI) public func XCTExpectFailure( _ message: String? = nil, body: () throws -> Void ) rethrows {} From d33e0aba7135b83bce0df8a6fb06e24c8a362a4a Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Fri, 10 Oct 2025 18:22:04 +0100 Subject: [PATCH 3/3] Add `import WASILibc` to `VariadicsGenerator.swift` --- Sources/VariadicsGenerator/VariadicsGenerator.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/VariadicsGenerator/VariadicsGenerator.swift b/Sources/VariadicsGenerator/VariadicsGenerator.swift index b1953bcd4..3e91294ad 100644 --- a/Sources/VariadicsGenerator/VariadicsGenerator.swift +++ b/Sources/VariadicsGenerator/VariadicsGenerator.swift @@ -20,6 +20,8 @@ import Glibc import CRT #elseif canImport(Bionic) import Bionic +#elseif os(WASI) +import WASILibc #endif // (T), (T)