Skip to content

Commit 35c3d7f

Browse files
[wasm] Use __visibility__("default") for all wasm platforms
The condition previously depended on the specific OS, but the image boundary is the same for all platforms using Wasm as image format. This fixes the Emscripten build.
1 parent 772cff1 commit 35c3d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/swift/shims/Visibility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
// right for Windows, we have everything set up to get it right on
135135
// other targets as well, and doing so lets the compiler use more
136136
// efficient symbol access patterns.
137-
#if defined(__MACH__) || defined(__wasi__)
137+
#if defined(__MACH__) || defined(__wasm__)
138138

139139
// On Mach-O and WebAssembly, we use non-hidden visibility. We just use
140140
// default visibility on both imports and exports, both because these

0 commit comments

Comments
 (0)