Add a `check-mlir-build-only` build target that only builds the dependencies of the...
authorMehdi Amini <joker.eph@gmail.com>
Sat, 2 Oct 2021 04:06:17 +0000 (04:06 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 2 Oct 2021 04:06:17 +0000 (04:06 +0000)
mlir/test/CMakeLists.txt

index 6c4bf43..ff39be5 100644 (file)
@@ -124,6 +124,14 @@ if(MLIR_ENABLE_BINDINGS_PYTHON)
   )
 endif()
 
+# This target can be used to just build the dependencies
+# for the check-mlir target without executing the tests.
+# This is useful for bots when splitting the build step
+# from the testing step.
+add_custom_target(check-mlir-build-only
+  DEPENDS ${MLIR_TEST_DEPENDS}
+)
+
 add_lit_testsuite(check-mlir "Running the MLIR regression tests"
   ${CMAKE_CURRENT_BINARY_DIR}
   DEPENDS ${MLIR_TEST_DEPENDS}