build: allow building a specific set of sanitizers
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 19 Aug 2016 15:13:21 +0000 (15:13 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 19 Aug 2016 15:13:21 +0000 (15:13 +0000)
commitb6ced621e839012f42aa29b9a1b47546697a5684
tree8df2edb6277bc0436899631a5b5dd7e1c9e23642
parent7d200668e4bb95a00be11ac92f30bdf6c68fb46d
build: allow building a specific set of sanitizers

Introduce a new CMake option `COMPILER_RT_SANITIZERS_TO_BUILD` which takes
either a special token `all` (default) which will preserve the current behaviour
or a CMake list of sanitizers to build.  It will still perform the normal checks
if the sanitizer is requested.  It only permits a further means to exclude a
particular sanitizer.  This gives finer grained control than
`COMPILER_RT_BUILD_SANITIZERS` which only gives an all or nothing control.

llvm-svn: 279253
compiler-rt/cmake/Modules/CompilerRTUtils.cmake
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/CMakeLists.txt