[Lldb-commits] [lldb] 1f7b25e - [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set

Manoj Gupta via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 13 14:18:46 PDT 2021


Author: Manoj Gupta
Date: 2021-08-13T14:18:03-07:00
New Revision: 1f7b25ea76a925aca690da28de9d78db7ca99d0c

URL: https://github.com/llvm/llvm-project/commit/1f7b25ea76a925aca690da28de9d78db7ca99d0c
DIFF: https://github.com/llvm/llvm-project/commit/1f7b25ea76a925aca690da28de9d78db7ca99d0c.diff

LOG: [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set

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.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D108053

Added: 
    

Modified: 
    lldb/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
index 2bb05c1e220b3..594c769141b43 100644
--- a/lldb/CMakeLists.txt
+++ b/lldb/CMakeLists.txt
@@ -64,7 +64,7 @@ if(LLVM_ENABLE_MODULES)
   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)


        


More information about the lldb-commits mailing list