Bug 1875002 - Explicitly set LIBCXXABI_USE_LLVM_UNWINDER off when building wasi-sdk. r=firefox-build-system-reviewers,sergesanspaille

Clang trunk has recently turned it on, and also now fails the build when
libunwind is not built at the same time.

Upstreamed in https://github.com/WebAssembly/wasi-sdk/pull/377

Differential Revision: https://phabricator.services.mozilla.com/D198763
This commit is contained in:
Mike Hommey 2024-01-17 19:41:06 +00:00
Родитель d4d4343838
Коммит 62d58c42f2
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,15 @@
diff --git a/Makefile b/Makefile
index d2ccff6..95f395b 100644
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,7 @@ LIBCXX_CMAKE_FLAGS = \
-DLIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY:BOOL=OFF \
-DLIBCXXABI_HAS_WIN32_THREAD_API:BOOL=OFF \
-DLIBCXXABI_ENABLE_PIC:BOOL=OFF \
+ -DLIBCXXABI_USE_LLVM_UNWINDER:BOOL=OFF \
-DWASI_SDK_PREFIX=$(BUILD_PREFIX) \
-DUNIX:BOOL=ON \
--debug-trycompile
diff --git a/src/wasi-libc/Makefile b/src/wasi-libc/Makefile
index f350ecb..9a5c940 100644
--- a/src/wasi-libc/Makefile