[test] Build sanitizer/xray tests only if COMPILER_RT_BUILD_* is on
authorMichal Gorny <mgorny@gentoo.org>
Wed, 26 Apr 2017 07:35:36 +0000 (07:35 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Wed, 26 Apr 2017 07:35:36 +0000 (07:35 +0000)
commit2bcd94f8d8959a523adf8211c57a94782d561ca5
treea3682b903a726d3fe8c023bee52b08657015ed8f
parentd9fb1578450fe9deaccd65ebc8b059dbaf30b0d4
[test] Build sanitizer/xray tests only if COMPILER_RT_BUILD_* is on

Cover the sanitizer tests with COMPILER_RT_BUILD_SANITIZERS
conditional, and add COMPILER_RT_BUILD_XRAY conditional to the xray
tests. This makes it possible to do a pure-builtins build with tests
enabled.

Differential Revision: https://reviews.llvm.org/D32489

llvm-svn: 301387
compiler-rt/test/CMakeLists.txt