From fca24be046f4ee7b6756dfa16e17e77e207eb119 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Sat, 7 Sep 2024 18:25:17 +0200 Subject: [PATCH] [core] Fix ASan build with LLVM 18 --- core/sanitizer/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/sanitizer/CMakeLists.txt b/core/sanitizer/CMakeLists.txt index fbe724b8bd99c..199a21ce4791a 100644 --- a/core/sanitizer/CMakeLists.txt +++ b/core/sanitizer/CMakeLists.txt @@ -20,6 +20,6 @@ set_property(GLOBAL APPEND PROPERTY ROOT_EXPORTED_TARGETS ${library}) add_library(ROOT::${library} ALIAS ${library}) # Now sanitize executables that are not created with ROOT_EXECUTABLE(): -set_property(TARGET llvm-tblgen clang-tblgen - APPEND PROPERTY LINK_LIBRARIES ${library}) -add_dependencies(llvm-tblgen ROOTStaticSanitizerConfig) +foreach(target llvm-min-tblgen llvm-tblgen clang-tblgen) + target_link_libraries(${target} PRIVATE ${library}) +endforeach()