Skip to content

Commit 1ef3068

Browse files
authored
Remove definition of __WASM_EXCEPTIONS__. NFC (#25295)
This macros is automatically defined clang in the pre-processor when wasm exceptions are enabled. See https://github.com/llvm/llvm-project/blob/82acc31fd4b26723b61dae76da120c0c649d0b97/clang/lib/Frontend/InitPreprocessor.cpp#L1034-L1035
1 parent 0723ed5 commit 1ef3068

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tools/system_libs.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,8 +1641,6 @@ def get_cflags(self):
16411641
# The code used to interpret exceptions during terminate
16421642
# is not compatible with emscripten exceptions.
16431643
cflags.append('-DLIBCXXABI_SILENT_TERMINATE')
1644-
elif self.eh_mode == Exceptions.WASM_LEGACY:
1645-
cflags.append('-D__WASM_EXCEPTIONS__')
16461644
return cflags
16471645

16481646
def get_files(self):
@@ -1721,12 +1719,6 @@ class libcxx(ExceptionLibrary, MTLibrary, DebugLibrary):
17211719
'tzdb_list.cpp',
17221720
]
17231721

1724-
def get_cflags(self):
1725-
cflags = super().get_cflags()
1726-
if self.eh_mode in (Exceptions.WASM_LEGACY, Exceptions.WASM):
1727-
cflags.append('-D__WASM_EXCEPTIONS__')
1728-
return cflags
1729-
17301722

17311723
class libunwind(ExceptionLibrary, MTLibrary):
17321724
name = 'libunwind'
@@ -1757,8 +1749,6 @@ def get_cflags(self):
17571749
cflags.append('-D_LIBUNWIND_HAS_NO_EXCEPTIONS')
17581750
elif self.eh_mode == Exceptions.EMSCRIPTEN:
17591751
cflags.append('-D__EMSCRIPTEN_EXCEPTIONS__')
1760-
elif self.eh_mode in (Exceptions.WASM_LEGACY, Exceptions.WASM):
1761-
cflags.append('-D__WASM_EXCEPTIONS__')
17621752
return cflags
17631753

17641754

0 commit comments

Comments
 (0)