From 5c880d346e413914cd67e5b1506ea787fe88a9bd Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 22 Oct 2025 17:53:45 +0100 Subject: [PATCH 1/2] Add Wasm builds 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 1e13e634..9189be05 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -20,6 +20,7 @@ jobs: uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: enable_cross_pr_testing: true + enable_wasm_sdk_build: true soundness: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main From 7ec4505abdc3e98e0873be59e5241d008d8b8bce Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 29 Oct 2025 17:39:57 +0000 Subject: [PATCH 2/2] Add `void` parameter to `getInstructionsExecuted` function Explicit `void` is required for functions taking no arguments when targeting Wasm. --- .../include/InstructionsExecuted.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/_SwiftFormatInstructionCounter/include/InstructionsExecuted.h b/Sources/_SwiftFormatInstructionCounter/include/InstructionsExecuted.h index af9d9a41..164f4413 100644 --- a/Sources/_SwiftFormatInstructionCounter/include/InstructionsExecuted.h +++ b/Sources/_SwiftFormatInstructionCounter/include/InstructionsExecuted.h @@ -14,4 +14,4 @@ /// On macOS returns the number of instructions the process has executed since /// it was launched, on all other platforms returns 0. -uint64_t getInstructionsExecuted(); +uint64_t getInstructionsExecuted(void);