Skip to content

Commit ed4c494

Browse files
committed
Define LLVM_ABI and CLANG_ABI for __EMSCRIPTEN__ builds
1 parent 57e3641 commit ed4c494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Support/Compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#define CLANG_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
5555
#define CLANG_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
5656
#define CLANG_EXPORT_TEMPLATE
57-
#elif defined(__MACH__) || defined(__WASM__)
57+
#elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__)
5858
#define CLANG_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
5959
#define CLANG_TEMPLATE_ABI
6060
#define CLANG_EXPORT_TEMPLATE

llvm/include/llvm/Support/Compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
#define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
204204
#define LLVM_EXPORT_TEMPLATE
205205
#define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
206-
#elif defined(__MACH__) || defined(__WASM__)
206+
#elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__)
207207
#define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
208208
#define LLVM_TEMPLATE_ABI
209209
#define LLVM_EXPORT_TEMPLATE

0 commit comments

Comments
 (0)