Skip to content

Commit d0d4ef7

Browse files
[test][wasm] Properly enable test/IRGen/sanitize_coverage.swift on Wasm
1 parent 2b6ea81 commit d0d4ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IRGen/sanitize_coverage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-coverage=edge,indirect-calls %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_INDIRECT_CALLS
99
// RUN: %target-swift-frontend -emit-ir -sanitize=address -sanitize-coverage=edge,8bit-counters %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_8BIT_COUNTERS
1010
// RUN: %target-swift-frontend -emit-ir -sanitize=fuzzer %s | %FileCheck %s -check-prefix=SANCOV -check-prefix=SANCOV_TRACE_CMP
11-
// These sanitizers aren't supported when targeting Wasm.
12-
// UNSUPPORTED: wasm
1311

1412
#if canImport(Darwin)
1513
import Darwin
@@ -19,6 +17,8 @@
1917
import Android
2018
#elseif os(Windows)
2119
import CRT
20+
#elseif os(WASI)
21+
import WASILibc
2222
#else
2323
#error("Unsupported platform")
2424
#endif

0 commit comments

Comments
 (0)