[llvm] 55f4ff4 - [cmake] Add llvm-readobj before lldb (#202715)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 23:27:03 PDT 2026
Author: Himadhith
Date: 2026-06-10T11:56:58+05:30
New Revision: 55f4ff4306e1c64f08f5ee58164b49cee3d461fc
URL: https://github.com/llvm/llvm-project/commit/55f4ff4306e1c64f08f5ee58164b49cee3d461fc
DIFF: https://github.com/llvm/llvm-project/commit/55f4ff4306e1c64f08f5ee58164b49cee3d461fc.diff
LOG: [cmake] Add llvm-readobj before lldb (#202715)
After #199152, following CMake error is found when building llvm-lit:
```
CMake Error at cmake/modules/AddLLVM.cmake:2816 (get_target_property):
get_target_property() called with non-existent target "llvm-readobj".
Call Stack (most recent call first):
cmake/modules/AddLLVM.cmake:1513 (get_host_tool_path)
cmake/modules/AddLLVM.cmake:1556 (export_executable_symbols)
tools/llvm-lto2/CMakeLists.txt:27 (export_executable_symbols_for_plugins)
```
Fixed by adding llvm-readobj before lldb. (Similar to
https://github.com/llvm/llvm-project/pull/201648)
Co-authored-by: himadhith <himadhith.v at ibm.com>
Added:
Modified:
llvm/tools/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt
index 8a2afdd9153d3..a579bdf0f6fb6 100644
--- a/llvm/tools/CMakeLists.txt
+++ b/llvm/tools/CMakeLists.txt
@@ -36,6 +36,7 @@ add_llvm_tool_subdirectory(llvm-ctxprof-util)
add_llvm_tool_subdirectory(llvm-lto)
add_llvm_tool_subdirectory(llvm-profdata)
add_llvm_tool_subdirectory(llvm-nm)
+add_llvm_tool_subdirectory(llvm-readobj)
# Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly
# specified.
More information about the llvm-commits
mailing list