[Lldb-commits] [PATCH] D107700: [lldb] [cmake] Add LLVM_LIT_ARGS override support for standalone builds

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 7 13:09:41 PDT 2021


mgorny created this revision.
mgorny added reviewers: phosek, sgraenitz, jasonmolenda, JDevlieghere, krytarowski.
mgorny requested review of this revision.

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.


https://reviews.llvm.org/D107700

Files:
  lldb/cmake/modules/LLDBStandalone.cmake


Index: lldb/cmake/modules/LLDBStandalone.cmake
===================================================================
--- lldb/cmake/modules/LLDBStandalone.cmake
+++ lldb/cmake/modules/LLDBStandalone.cmake
@@ -10,6 +10,8 @@
 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")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107700.364979.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210807/21370e93/attachment.bin>


More information about the lldb-commits mailing list