[llvm-branch-commits] [lldb] 8c1ca94 - [lldb] [cmake] Add LLVM_LIT_ARGS override support for standalone builds

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 10 15:36:20 PDT 2021


Author: Michał Górny
Date: 2021-08-10T15:36:07-07:00
New Revision: 8c1ca94ad27e3ab088a0cdf35b2420579b9407e2

URL: https://github.com/llvm/llvm-project/commit/8c1ca94ad27e3ab088a0cdf35b2420579b9407e2
DIFF: https://github.com/llvm/llvm-project/commit/8c1ca94ad27e3ab088a0cdf35b2420579b9407e2.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

(cherry picked from commit 614c7d03877fd99c2de47429b15be3f00306a3bd)

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 llvm-branch-commits mailing list