[Lldb-commits] [lldb] 0ce6052 - [lldb] install lldb-tblgen by default to ease cross-compilation (one-liner) (#159812)

via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 19 10:56:30 PDT 2025


Author: Jonathan Thackray
Date: 2025-09-19T10:56:26-07:00
New Revision: 0ce6052a0c08035a07fcabb05271be7313308db3

URL: https://github.com/llvm/llvm-project/commit/0ce6052a0c08035a07fcabb05271be7313308db3
DIFF: https://github.com/llvm/llvm-project/commit/0ce6052a0c08035a07fcabb05271be7313308db3.diff

LOG: [lldb] install lldb-tblgen by default to ease cross-compilation (one-liner) (#159812)

Right now, cross-building `lldb` means either installing a native
`lldb-tblgen` by hand (non-trivial, as CMake is painful) or first
building all of native clang because of how the CMake rules work, which
is not fun.

In keeping with the pattern established by llvm-tblgen and clang-tblgen,
install lldb-tblgen to ease cross-compilation.

Co-authored-by: Ross Burton <ross.burton at arm.com>

Added: 
    

Modified: 
    lldb/utils/TableGen/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/utils/TableGen/CMakeLists.txt b/lldb/utils/TableGen/CMakeLists.txt
index 0ac010bcda355..ce96dddd44201 100644
--- a/lldb/utils/TableGen/CMakeLists.txt
+++ b/lldb/utils/TableGen/CMakeLists.txt
@@ -8,6 +8,7 @@ if (NOT DEFINED LLDB_TABLEGEN_EXE)
     set(LLVM_LINK_COMPONENTS Support)
 
     add_tablegen(lldb-tblgen LLDB
+      DESTINATION "${CMAKE_INSTALL_BINDIR}"
       LLDBOptionDefEmitter.cpp
       LLDBPropertyDefEmitter.cpp
       LLDBTableGen.cpp


        


More information about the lldb-commits mailing list