[CMake] Provide options for toggling on and off various runtime libraries.
authorChris Bieneman <beanz@apple.com>
Wed, 9 Dec 2015 22:45:03 +0000 (22:45 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 9 Dec 2015 22:45:03 +0000 (22:45 +0000)
commite82ad46f15306f349631f449fcf5615292b76290
tree0607d58afd9333a506ba51fe35cc0cc5a5f2b9c6
parented11bd286f76e2ea2bf7ba1ebeff2d77a1be93a0
[CMake] Provide options for toggling on and off various runtime libraries.

Summary:
Rather than having to add new "experimental" options each time someone wants to work on bringing a sanitizer to a new platform, this patch makes options for all of them.

The default values for the options are set by the platform checks that would have enabled them, but they can be overridden on or off.

Reviewers: kubabrecka, samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14846

llvm-svn: 255170
compiler-rt/cmake/Modules/CompilerRTUtils.cmake
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/CMakeLists.txt
compiler-rt/lib/lsan/CMakeLists.txt
compiler-rt/lib/tsan/CMakeLists.txt
compiler-rt/lib/ubsan/CMakeLists.txt
compiler-rt/test/CMakeLists.txt
compiler-rt/test/cfi/CMakeLists.txt
compiler-rt/test/interception/CMakeLists.txt [new file with mode: 0644]
compiler-rt/test/ubsan/CMakeLists.txt