Skip to content

Commit ca8ee49

Browse files
[MLIR] Set LLVM_LIT_ARGS in Standalone Example CMake (#152423)
Setting LLVM_LIT_ARGS to include --quiet and then running check-mlir in a standard checkout will otherwise cause test failures here because LLVM_LIT_ARGS gets propagated into this project.
1 parent c61fb5c commit ca8ee49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlir/examples/standalone/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to")
88
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
99
find_package(MLIR REQUIRED CONFIG)
1010

11+
12+
# Define the default argument to use by `lit` when testing.
13+
set(LLVM_LIT_ARGS "-sv" CACHE STRING "Default options for lit")
14+
1115
message(STATUS "Using MLIRConfig.cmake in: ${MLIR_DIR}")
1216
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
1317

0 commit comments

Comments
 (0)