[compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORT...
authorEmily Shi <code@emi.sh>
Tue, 9 Nov 2021 01:19:57 +0000 (17:19 -0800)
committerEmily Shi <code@emi.sh>
Thu, 11 Nov 2021 03:16:20 +0000 (19:16 -0800)
commit919ca9fc045f84b507bf80332c398a6fc3be1681
treeb5efbe0160dafca41b093552ce96e8e17fafb5f2
parent56efafeabfaeaa891c0b308e9f728d8f98feea79
[compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS

Currently, SANITIZER_COMMON_SUPPORTED_OS is being used to enable many libraries.
Unfortunately this makes it impossible to selectively disable a library based on the OS.
This patch removes this limitation by adding a separate list of supported OSs for the lsan, ubsan, ubsan_minimal, and stats libraries.

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D113444
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/lsan/CMakeLists.txt
compiler-rt/lib/stats/CMakeLists.txt
compiler-rt/lib/ubsan/CMakeLists.txt
compiler-rt/lib/ubsan_minimal/CMakeLists.txt
compiler-rt/test/ubsan/CMakeLists.txt