[compiler-rt] 3ed77ec - [MemProf] Don't build memprof if sanitizer not being built
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 16 10:52:33 PDT 2020
Author: Teresa Johnson
Date: 2020-10-16T10:47:37-07:00
New Revision: 3ed77ecd0a5d5e5c33770f0f9d3d75cf2f80c80b
URL: https://github.com/llvm/llvm-project/commit/3ed77ecd0a5d5e5c33770f0f9d3d75cf2f80c80b
DIFF: https://github.com/llvm/llvm-project/commit/3ed77ecd0a5d5e5c33770f0f9d3d75cf2f80c80b.diff
LOG: [MemProf] Don't build memprof if sanitizer not being built
This should fix a couple of debian bot failures:
http://lab.llvm.org:8011/#builders/14/builds/380
http://lab.llvm.org:8011/#builders/109/builds/533
They disable building of the sanitizer, which memprof relies on. So
disable building of memprof in that case.
Added:
Modified:
compiler-rt/lib/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt
index 69c6c6c814d1..aa7591f0d9b4 100644
--- a/compiler-rt/lib/CMakeLists.txt
+++ b/compiler-rt/lib/CMakeLists.txt
@@ -60,7 +60,8 @@ if(COMPILER_RT_BUILD_LIBFUZZER)
compiler_rt_build_runtime(fuzzer)
endif()
-if(COMPILER_RT_BUILD_MEMPROF AND COMPILER_RT_HAS_SANITIZER_COMMON)
+if(COMPILER_RT_BUILD_MEMPROF AND COMPILER_RT_HAS_SANITIZER_COMMON AND
+ COMPILER_RT_BUILD_SANITIZERS)
compiler_rt_build_runtime(memprof)
endif()
More information about the llvm-commits
mailing list