Skip to content

Commit 07b0665

Browse files
authored
[Flang] Support overriding LLVM_LIT_ARGS in standalone builds (llvm#127340)
Declare `LLVM_LIT_ARGS` as a cache variable in standalone builds to permit overriding it. This mirrors the logic used in Clang.
1 parent 761d422 commit 07b0665

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flang/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ if (FLANG_STANDALONE_BUILD)
199199
${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
200200

201201
set(LLVM_EXTERNAL_LIT "${LLVM_TOOLS_BINARY_DIR}/llvm-lit" CACHE STRING "Command used to spawn lit")
202+
set(LIT_ARGS_DEFAULT "-sv")
203+
if (MSVC OR XCODE)
204+
set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar")
205+
endif()
206+
set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}" CACHE STRING "Default options for lit")
202207

203208
option(FLANG_INCLUDE_TESTS
204209
"Generate build targets for the Flang unit tests."

0 commit comments

Comments
 (0)