[Lldb-commits] [lldb] 614c7d0 - [lldb] [cmake] Add LLVM_LIT_ARGS override support for standalone builds

Michał Górny via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 9 14:36:18 PDT 2021


Author: Michał Górny
Date: 2021-08-09T23:36:01+02:00
New Revision: 614c7d03877fd99c2de47429b15be3f00306a3bd

URL: https://github.com/llvm/llvm-project/commit/614c7d03877fd99c2de47429b15be3f00306a3bd
DIFF: https://github.com/llvm/llvm-project/commit/614c7d03877fd99c2de47429b15be3f00306a3bd.diff

LOG: [lldb] [cmake] Add LLVM_LIT_ARGS override support for standalone builds

Add a LLVM_LIT_ARGS cached variable in order to make it possible
to override lit arguments when doing standalone builds.  Without that,
the user variable is ignored and the default options are always used.

Based on a similar solution found in clang.

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

Added: 
    

Modified: 
    lldb/cmake/modules/LLDBStandalone.cmake

Removed: 
    


################################################################################
diff  --git a/lldb/cmake/modules/LLDBStandalone.cmake b/lldb/cmake/modules/LLDBStandalone.cmake
index 94781c3583744..98d7848ce99b0 100644
--- a/lldb/cmake/modules/LLDBStandalone.cmake
+++ b/lldb/cmake/modules/LLDBStandalone.cmake
@@ -10,6 +10,8 @@ set(LLVM_MAIN_SRC_DIR ${LLVM_BUILD_MAIN_SRC_DIR} CACHE PATH "Path to LLVM source
 set(LLVM_MAIN_INCLUDE_DIR ${LLVM_MAIN_INCLUDE_DIR} CACHE PATH "Path to llvm/include")
 set(LLVM_BINARY_DIR ${LLVM_BINARY_DIR} CACHE PATH "Path to LLVM build tree")
 
+set(LLVM_LIT_ARGS "-sv" CACHE STRING "Default options for lit")
+
 set(lit_file_name "llvm-lit")
 if(CMAKE_HOST_WIN32 AND NOT CYGWIN)
   set(lit_file_name "${lit_file_name}.py")


        


More information about the lldb-commits mailing list