Without this COMPILER_RT_BUILD_SANITIZERS=OFF etc. would not work with cross compilation (e.g. with LLVM_ENABLE_RUNTIMES=compiler-rt)
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This needs be done on a per-target basis, not globally (e.g. you may want to use COMPILER_RT_BUILD_SANITIZERS=OFF for target1 but not target2). Have you tried setting RUNTIMES_${target}_COMPILER_RT_BUILD_SANITIZERS=OFF? This should be already supported, see for example https://github.com/llvm/llvm-project/blob/master/clang/cmake/caches/Fuchsia-stage2.cmake#L100