[compiler-rt] [compiler-rt] [CMake] Only configure sanitizer-common if _BUILD and _HAS a dep (PR #160962)

Andrew Haberlandt via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 10:20:44 PDT 2025


ndrewh wrote:

Arguably, users should have to specify `COMPILER_RT_BUILD_xxx=NO` if they want to be sure a component does not build, since `COMPILER_RT_HAS_xxx` could change at any time due to a developer adding support for a particular runtime+platform. However, I think this is a reasonable change regardless: check both the BUILD_ and HAS_ options to make sure we are _actually_ going to configure the runtime before configuring sanitizer-common.

https://github.com/llvm/llvm-project/pull/160962


More information about the llvm-commits mailing list