[Lldb-commits] [PATCH] D108053: [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set
Manoj Gupta via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 13 13:34:42 PDT 2021
manojgupta created this revision.
manojgupta added reviewers: JDevlieghere, mstorsjo.
Herald added a subscriber: mgorny.
manojgupta requested review of this revision.
Herald added a project: LLDB.
When cross compiling lldb-server, do not create a host build
for building lldb-tblgeb when LLDB_TABLEGEN_EXE is already
provided. This avoids an expensive and time-consuming build step
if lldb-tblgen was already built previously for host.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108053
Files:
lldb/CMakeLists.txt
Index: lldb/CMakeLists.txt
===================================================================
--- lldb/CMakeLists.txt
+++ lldb/CMakeLists.txt
@@ -64,7 +64,7 @@
list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
endif()
-if(CMAKE_CROSSCOMPILING AND LLDB_BUILT_STANDALONE)
+if(CMAKE_CROSSCOMPILING AND LLDB_BUILT_STANDALONE AND NOT LLDB_TABLEGEN_EXE)
set(LLVM_USE_HOST_TOOLS ON)
include(CrossCompile)
if (NOT NATIVE_LLVM_DIR OR NOT NATIVE_Clang_DIR)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108053.366345.patch
Type: text/x-patch
Size: 461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210813/9b301cb4/attachment.bin>
More information about the lldb-commits
mailing list