[compiler-rt] e338936 - Build SanitizerCommon if ctx_profile enabled (#105495)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 00:48:10 PDT 2024
Author: Nikita Popov
Date: 2024-08-22T09:48:05+02:00
New Revision: e3389365b5d62bc9781dc9a23b14d72e333018d7
URL: https://github.com/llvm/llvm-project/commit/e3389365b5d62bc9781dc9a23b14d72e333018d7
DIFF: https://github.com/llvm/llvm-project/commit/e3389365b5d62bc9781dc9a23b14d72e333018d7.diff
LOG: Build SanitizerCommon if ctx_profile enabled (#105495)
ctx_profile has a dependency on SanitizerCommon, so make sure it is
built even if we otherwise disable sanitizers.
Added:
Modified:
compiler-rt/lib/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt
index 22f9b3ea8a0c35..e6158ec4088951 100644
--- a/compiler-rt/lib/CMakeLists.txt
+++ b/compiler-rt/lib/CMakeLists.txt
@@ -9,7 +9,7 @@ include(SanitizerUtils)
#
#TODO: Refactor sanitizer_common into smaller pieces (e.g. flag parsing, utils).
if (COMPILER_RT_HAS_SANITIZER_COMMON AND
- (COMPILER_RT_BUILD_SANITIZERS OR COMPILER_RT_BUILD_XRAY OR COMPILER_RT_BUILD_MEMPROF))
+ (COMPILER_RT_BUILD_SANITIZERS OR COMPILER_RT_BUILD_XRAY OR COMPILER_RT_BUILD_MEMPROF OR COMPILER_RT_BUILD_CTX_PROFILE))
add_subdirectory(sanitizer_common)
endif()
More information about the llvm-commits
mailing list