summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-09-17 06:31:23 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-09-17 06:31:23 +0000
commit55394c0775c8799d3ff9eab70dc315925311b0b3 (patch)
treea42f2b310c887bdf5205af85920f0f4bc156f2b8
parentbc3789a9190f8ad51642c0dc430eaae433a1606c (diff)
downloadbcm5719-llvm-55394c0775c8799d3ff9eab70dc315925311b0b3.tar.gz
bcm5719-llvm-55394c0775c8799d3ff9eab70dc315925311b0b3.zip
[compiler-rt] Disable building of profiling runtime when LLVM_USE_SANITIZER is set
Currently, when doing a ASanified build of LLVM (with Clang, compiler-rt and libcxx) via -DLLVM_USE_SANITIZER=Address and not using any other options, we already disable building of sanitizer runtimes (because they themselves can’t be sanitized) and also exclude the sanitizer tests. However, the same is not done for the profiling runtime, which will build fine, but then all the tests fail due to linking errors. Let’s disable the profiling runtime as well (when LLVM_USE_SANITIZER is set). Differential Revision: https://reviews.llvm.org/D24657 llvm-svn: 281815
-rw-r--r--compiler-rt/cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake
index a96d0572e7f..84ffd98729b 100644
--- a/compiler-rt/cmake/config-ix.cmake
+++ b/compiler-rt/cmake/config-ix.cmake
@@ -462,7 +462,7 @@ else()
set(COMPILER_RT_HAS_MSAN FALSE)
endif()
-if (PROFILE_SUPPORTED_ARCH AND
+if (PROFILE_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows")
set(COMPILER_RT_HAS_PROFILE TRUE)
else()
OpenPOWER on IntegriCloud