From a08b85a4331e364d5070cbc97b834d505c978056 Mon Sep 17 00:00:00 2001 From: cor3ntin Date: Mon, 15 Jan 2024 11:59:52 +0100 Subject: [PATCH] Use libunwind for recent clang versions libunwind is required to build libc++ as of https://github.com/llvm/llvm-project/pull/77687#issuecomment-1890582294 It was already used for numbered versions, but not trunk. I also updated my branch and left everything else alone as I did not know whether they use version of clang that can build libunwind --- build/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/build.sh b/build/build.sh index 74f3223..cf51716 100755 --- a/build/build.sh +++ b/build/build.sh @@ -29,6 +29,7 @@ autonsdmi-trunk) URL=https://github.com/cor3ntin/llvm-project.git VERSION=autonsdmi-trunk-$(date +%Y%m%d) CMAKE_EXTRA_ARGS+=("-DLLVM_OPTIMIZED_TABLEGEN=ON") + LLVM_ENABLE_RUNTIMES+=";libunwind" ;; cppx-trunk) BRANCH=compiler-explorer @@ -187,6 +188,7 @@ mlir-*) PATCHES_TO_APPLY+=("${ROOT}/patches/ce-debug-clang-trunk.patch") LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="DirectX;SPIRV;M68k" CMAKE_EXTRA_ARGS+=("-DCLANG_ENABLE_HLSL=On") + LLVM_ENABLE_RUNTIMES+=";libunwind" ;; assertions-trunk) BRANCH=main