11@ echo off
2- setlocal enabledelayedexpansion
32
3+ REM Filter out tests that are known to fail.
4+ set " LIT_FILTER_OUT = gh110231.cpp|crt_initializers.cpp|init-order-atexit.cpp|use_after_return_linkage.cpp|initialization-bug.cpp|initialization-bug-no-global.cpp|trace-malloc-unbalanced.test|trace-malloc-2.test|TraceMallocTest"
5+
6+ setlocal enabledelayedexpansion
47goto begin
58
69:usage
2427echo Example: build_llvm_release.bat --version 15.0.0 --x86 --x64
2528exit /b 1
2629
30+
2731:begin
2832
2933:: ==============================================================================
@@ -163,7 +167,8 @@ set common_cmake_flags=^
163167 -DCMAKE_CXX_FLAGS=" %common_compiler_flags% " ^
164168 -DLLVM_ENABLE_RPMALLOC=ON ^
165169 -DLLVM_ENABLE_PROJECTS=" clang;clang-tools-extra;lld" ^
166- -DLLVM_ENABLE_RUNTIMES=" compiler-rt;openmp"
170+ -DLLVM_ENABLE_RUNTIMES=" compiler-rt;openmp" ^
171+ -DCOMPILER_RT_BUILD_ORC=OFF
167172
168173if " %force-msvc% " == " " (
169174 where /q clang-cl
@@ -215,6 +220,7 @@ set "stage0_bin_dir=%build_dir%/build32_stage0/bin"
215220set cmake_flags = ^
216221 %common_cmake_flags% ^
217222 -DLLVM_ENABLE_RPMALLOC=OFF ^
223+ -DCOMPILER_RT_BUILD_SANITIZERS=OFF ^
218224 -DPython3_ROOT_DIR=%PYTHONHOME% ^
219225 -DLIBXML2_INCLUDE_DIR=%libxmldir% /include/libxml2 ^
220226 -DLIBXML2_LIBRARIES=%libxmldir% /lib/libxml2s.lib
@@ -224,7 +230,7 @@ ninja || ninja || ninja || exit /b 1
224230REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1
225231REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1
226232ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1
227- ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1
233+ ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1
228234REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1
229235cd..
230236
@@ -233,6 +239,7 @@ REM with forward slash.
233239set all_cmake_flags = ^
234240 %cmake_flags% ^
235241 -DLLVM_ENABLE_PROJECTS=" clang;clang-tools-extra;lld;lldb;" ^
242+ -DCOMPILER_RT_BUILD_SANITIZERS=OFF ^
236243 %common_lldb_flags% ^
237244 -DPYTHON_HOME=%PYTHONHOME% ^
238245 -DCMAKE_C_COMPILER=%stage0_bin_dir% /clang-cl.exe ^
@@ -249,7 +256,7 @@ ninja || ninja || ninja || exit /b 1
249256REM ninja check-llvm || ninja check-llvm || ninja check-llvm || exit /b 1
250257REM ninja check-clang || ninja check-clang || ninja check-clang || exit /b 1
251258ninja check-lld || ninja check-lld || ninja check-lld || exit /b 1
252- ninja check-sanitizer || ninja check-sanitizer || ninja check-sanitizer || exit /b 1
259+ ninja check-runtimes || ninja check-runtimes || ninja check-runtimes || exit /b 1
253260REM ninja check-clang-tools || ninja check-clang-tools || ninja check-clang-tools || exit /b 1
254261ninja package || exit /b 1
255262cd ..
0 commit comments