[compiler-rt] 2873a9a - [symbolizer] Check if dependecy exist
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 10 16:59:34 PDT 2023
Author: Vitaly Buka
Date: 2023-09-10T16:58:49-07:00
New Revision: 2873a9ae279e267bc09625642bd2d9f0589074a4
URL: https://github.com/llvm/llvm-project/commit/2873a9ae279e267bc09625642bd2d9f0589074a4
DIFF: https://github.com/llvm/llvm-project/commit/2873a9ae279e267bc09625642bd2d9f0589074a4.diff
LOG: [symbolizer] Check if dependecy exist
Deppending on how we build compiler-rt, as a project,
or as runtime, tools needed to build can be prebuilt or
exist as a target.
Added:
Modified:
compiler-rt/lib/sanitizer_common/symbolizer/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/symbolizer/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/symbolizer/CMakeLists.txt
index 49ff201066bcf92..def2287a487d1fd 100644
--- a/compiler-rt/lib/sanitizer_common/symbolizer/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/symbolizer/CMakeLists.txt
@@ -6,9 +6,15 @@ foreach(arch ${SANITIZER_COMMON_SUPPORTED_ARCH})
add_custom_command(OUTPUT ${RTSanitizerCommonSymbolizerInternalDir}
COMMAND ${CMAKE_COMMAND} -E make_directory ${RTSanitizerCommonSymbolizerInternalDir})
+ foreach(dep clang lld llvm-tblgen opt llvm-ar llvm-link llvm-ranlib llvm-symbolizer)
+ if (TARGET ${dep})
+ list(APPEND SYMBOLIZER_DEPS ${dep})
+ endif()
+ endforeach()
+
add_custom_command(OUTPUT RTSanitizerCommonSymbolizerInternal.${arch}.o
DEPENDS ${RTSanitizerCommonSymbolizerInternalDir}
- clang lld llvm-tblgen opt llvm-ar llvm-link llvm-ranlib llvm-symbolizer
+ ${SYMBOLIZER_DEPS}
sanitizer_wrappers.cpp
sanitizer_symbolize.cpp
scripts/build_symbolizer.sh
More information about the llvm-commits
mailing list