Skip to content

Commit d1a26d0

Browse files
[wasm][build] Disable LLVM unwinder in libcxxabi (#77018)
This change disables the use of llvm libunwind in libcxxabi, which is enabled by default in the rebranched scheme. (https://reviews.llvm.org/D150897) But the llvm libunwind is not supported in the WebAssembly target, so we need to disable it explicitly. This is a preparation for the upcoming `rebranch` merge.
1 parent c206725 commit d1a26d0

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
@@ -209,6 +209,7 @@ def _build(self, host_target, enable_wasi_threads=False,
209209
self.cmake_options.define('LIBCXX_ABI_VERSION', '2')
210210
self.cmake_options.define('LIBCXXABI_ENABLE_EXCEPTIONS:BOOL', 'FALSE')
211211
self.cmake_options.define('LIBCXXABI_ENABLE_SHARED:BOOL', 'FALSE')
212+
self.cmake_options.define('LIBCXXABI_USE_LLVM_UNWINDER:BOOL', 'FALSE')
212213
self.cmake_options.define('LIBCXXABI_SILENT_TERMINATE:BOOL', 'TRUE')
213214
self.cmake_options.define('LIBCXXABI_ENABLE_THREADS:BOOL', cmake_has_threads)
214215
self.cmake_options.define('LIBCXXABI_HAS_PTHREAD_API:BOOL', cmake_has_threads)

0 commit comments

Comments
 (0)