[Lldb-commits] [lldb] 6587ff7 - [lldb] Fix llvm-lit in standalone builds

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 29 15:38:47 PDT 2020


Author: Jonas Devlieghere
Date: 2020-07-29T15:38:40-07:00
New Revision: 6587ff77ea7aea508dde4ff68bf89e301756a52c

URL: https://github.com/llvm/llvm-project/commit/6587ff77ea7aea508dde4ff68bf89e301756a52c
DIFF: https://github.com/llvm/llvm-project/commit/6587ff77ea7aea508dde4ff68bf89e301756a52c.diff

LOG: [lldb] Fix llvm-lit in standalone builds

LLVM's make_paths_relative uses Python3_EXECUTABLE which isn't set in
standalone LLDB builds.

Added: 
    

Modified: 
    lldb/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 96931cbaeaf9..dc5af5e2defe 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -216,6 +216,9 @@ add_dependencies(check-lldb-reproducers check-lldb-reproducers-capture)
 if(LLDB_BUILT_STANDALONE)
   # This has to happen *AFTER* add_lit_testsuite.
   if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/llvm-lit)
+    # LLVM's make_paths_relative uses Python3_EXECUTABLE which isn't set in a
+    # standalone LLDB build.
+    set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
     add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/llvm-lit ${CMAKE_CURRENT_BINARY_DIR}/llvm-lit)
   endif()
 endif()


        


More information about the lldb-commits mailing list