Skip to content

Commit

Permalink
Build SanitizerCommon if ctx_profile enabled (llvm#105495)
Browse files Browse the repository at this point in the history
ctx_profile has a dependency on SanitizerCommon, so make sure it is
built even if we otherwise disable sanitizers.
  • Loading branch information
nikic authored Aug 22, 2024
1 parent de2b6cb commit e338936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit e338936

Please sign in to comment.