Skip to content

Commit 5fa57fa

Browse files
[MLIR] Set LLVM_LIT_ARGS in Standalone Example CMake
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 04672e2 commit 5fa57fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mlir/examples/standalone/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ 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+
# Explictily set LLVM_LIT_ARGS so that the in-tree test for this example
12+
# will get the expected output regardless of the value of LLVM_LIT_ARGS
13+
# in the main LLVM build.
14+
set(LLVM_LIT_ARGS "")
15+
1116
message(STATUS "Using MLIRConfig.cmake in: ${MLIR_DIR}")
1217
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
1318

0 commit comments

Comments
 (0)