Skip to content

Commit 5c5c1dc

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 d987c26 commit 5c5c1dc

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)