Skip to content

Commit d7f473a

Browse files
committed
Disable traits in pre-6.1, guard use of package on trait
1 parent 9d936b6 commit d7f473a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
wasi-swift-sdk-download: "https://download.swift.org/development/wasm-sdk/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm.artifactbundle.tar.gz"
3030
wasi-swift-sdk-id: swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm
3131
wasi-swift-sdk-checksum: "b64dfad9e1c9ccdf06f35cf9b1a00317e000df0c0de0b3eb9f49d6db0fcba4d9"
32-
test-args: "--sanitize address"
32+
test-args: "--sanitize address --traits WasmDebuggingSupport"
3333
# Swift 6.2
3434
- os: macos-15
3535
xcode: Xcode_26.0
3636
development-toolchain-tag: swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a
3737
wasi-swift-sdk-download: "https://download.swift.org/development/wasm-sdk/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm.artifactbundle.tar.gz"
3838
wasi-swift-sdk-id: swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm
3939
wasi-swift-sdk-checksum: "b64dfad9e1c9ccdf06f35cf9b1a00317e000df0c0de0b3eb9f49d6db0fcba4d9"
40-
test-args: "--sanitize address"
40+
test-args: "--sanitize address --traits WasmDebuggingSupport"
4141

4242
runs-on: ${{ matrix.os }}
4343
name: "build-macos (${{ matrix.xcode }})"
@@ -102,7 +102,6 @@ jobs:
102102
wasi-swift-sdk-download: "https://download.swift.org/development/wasm-sdk/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm.artifactbundle.tar.gz"
103103
wasi-swift-sdk-id: swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm
104104
wasi-swift-sdk-checksum: "b64dfad9e1c9ccdf06f35cf9b1a00317e000df0c0de0b3eb9f49d6db0fcba4d9"
105-
test-args: "--traits WasmDebuggingSupport"
106105
- swift: "swift:6.1-noble"
107106
development-toolchain-download: "https://download.swift.org/development/ubuntu2404/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a-ubuntu24.04.tar.gz"
108107
wasi-swift-sdk-download: "https://download.swift.org/development/wasm-sdk/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a/swift-DEVELOPMENT-SNAPSHOT-2025-10-02-a_wasm.artifactbundle.tar.gz"

Sources/WasmKit/Execution/Execution.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ struct Execution: ~Copyable {
1414
/// - Note: If the trap is set, it must be released manually.
1515
private var trap: (error: UnsafeRawPointer, sp: Sp)? = nil
1616

17+
#if WasmDebuggingSupport
1718
package init(store: StoreRef, stackEnd: UnsafeMutablePointer<StackSlot>) {
1819
self.store = store
1920
self.stackEnd = stackEnd
2021
}
22+
#endif
2123

2224
/// Executes the given closure with a new execution state associated with
2325
/// the given ``Store`` instance.

0 commit comments

Comments
 (0)