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()


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to