Skip to content

Commit 6e7f8c3

Browse files
[wasm][build] Disable LLVM unwinder in libcxxabi
This change disables the use of llvm libunwind in libcxxabi, which is enabled by default. This is necessary because the llvm libunwind is not supported in the WebAssembly target.
1 parent e77bc7f commit 6e7f8c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/swift_build_support/swift_build_support/products/wasisysroot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def _build(self, host_target, enable_wasi_threads=False,
210210
self.cmake_options.define('LIBCXX_ABI_VERSION', '2')
211211
self.cmake_options.define('LIBCXXABI_ENABLE_EXCEPTIONS:BOOL', 'FALSE')
212212
self.cmake_options.define('LIBCXXABI_ENABLE_SHARED:BOOL', 'FALSE')
213+
self.cmake_options.define('LIBCXXABI_USE_LLVM_UNWINDER:BOOL', 'FALSE')
213214
self.cmake_options.define('LIBCXXABI_SILENT_TERMINATE:BOOL', 'TRUE')
214215
self.cmake_options.define('LIBCXXABI_ENABLE_THREADS:BOOL', cmake_has_threads)
215216
self.cmake_options.define('LIBCXXABI_HAS_PTHREAD_API:BOOL', cmake_has_threads)

0 commit comments

Comments
 (0)