[llvm] [runtimes] Add llvm-dis to compiler-rt test dependency (PR #227212)

Wenju He via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 01:10:35 PDT 2026


https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/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.

>From 34378557d9bebf94645ccace051390d48b26a0b6 Mon Sep 17 00:00:00 2001
From: Wenju He <wenju.he at intel.com>
Date: Tue, 29 Sep 2026 10:07:28 +0200
Subject: [PATCH] [runtimes] Add llvm-dis to compiler-rt test dependency

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.
---
 llvm/runtimes/CMakeLists.txt | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

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