[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.
This commit is contained in:
Teresa Johnson 2020-10-16 10:35:09 -07:00
parent 32f77eea2d
commit 3ed77ecd0a
1 changed files with 2 additions and 1 deletions

View File

@ -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()