[llvm] 33cbf68 - [runtimes] Add llvm-dis to compiler-rt test dependency (#227212)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 18:04:45 PDT 2026
Author: Wenju He
Date: 2026-09-30T09:04:38+08:00
New Revision: 33cbf6811bad57d89c4088f80633d21ee5b42dbc
URL: https://github.com/llvm/llvm-project/commit/33cbf6811bad57d89c4088f80633d21ee5b42dbc
DIFF: https://github.com/llvm/llvm-project/commit/33cbf6811bad57d89c4088f80633d21ee5b42dbc.diff
LOG: [runtimes] Add llvm-dis to compiler-rt test dependency (#227212)
A recent commit 9a0c255ce1ef introduced dependency on llvm-dis to
compiler-rt test instrprof-thinlto-indirect-call-promotion.cpp. This
caused error "llvm-dis: command not found" in CI testing. Fix by adding
llvm-dis to the dependency list for compiler-rt test.
Added:
Modified:
llvm/runtimes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index d9b01f692ecb2..fcb85ec96e265 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -629,13 +629,18 @@ if(build_runtimes)
list(APPEND extra_cmake_args "-DLLVM_NATIVE_TOOL_DIR=${LLVM_RUNTIME_OUTPUT_INTDIR}")
endif()
endif()
- # Tools needed by build_symbolizer.sh.
- if("compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES AND COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER)
- foreach(dep clang llvm-tblgen opt llvm-ar llvm-link)
- if(TARGET ${dep})
- list(APPEND extra_deps ${dep})
- endif()
- endforeach()
+ if("compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
+ # Tools needed by build_symbolizer.sh.
+ if (COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER)
+ foreach(dep clang llvm-tblgen opt llvm-ar llvm-link)
+ if(TARGET ${dep})
+ list(APPEND extra_deps ${dep})
+ endif()
+ endforeach()
+ endif()
+ if(LLVM_INCLUDE_TESTS AND TARGET llvm-dis)
+ list(APPEND extra_deps llvm-dis)
+ endif()
endif()
if("openmp" IN_LIST LLVM_ENABLE_RUNTIMES OR "offload" IN_LIST LLVM_ENABLE_RUNTIMES)
foreach(dep opt llvm-link llvm-extract clang llvm-offload-binary clang-nvlink-wrapper)
More information about the llvm-commits
mailing list