Skip to content

Commit 4776e99

Browse files
committed
[embedded] Use defined(__wasm__) instead of defined(__wasi__) in Visibility.h
1 parent e84c2a8 commit 4776e99

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,6 @@ importer::getNormalInvocationArguments(
638638
if (triple.isOSBinFormatMachO()) {
639639
invocationArgStrs.insert(invocationArgStrs.end(), {"-D__MACH__"});
640640
}
641-
if (triple.isOSBinFormatWasm()) {
642-
invocationArgStrs.insert(invocationArgStrs.end(), {"-D__wasi__"});
643-
}
644641

645642
if (triple.isOSWindows()) {
646643
switch (triple.getArch()) {

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)