[Mlir-commits] [mlir] a1d1c31 - Add a `check-mlir-build-only` build target that only builds the dependencies of the `check-mlir` test target (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Oct 1 21:18:53 PDT 2021


Author: Mehdi Amini
Date: 2021-10-02T04:06:17Z
New Revision: a1d1c31746ebb5bcae796bd5ff3c272b7fd0663c

URL: https://github.com/llvm/llvm-project/commit/a1d1c31746ebb5bcae796bd5ff3c272b7fd0663c
DIFF: https://github.com/llvm/llvm-project/commit/a1d1c31746ebb5bcae796bd5ff3c272b7fd0663c.diff

LOG: Add a `check-mlir-build-only` build target that only builds the dependencies of the `check-mlir` test target (NFC)

Added: 
    

Modified: 
    mlir/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt
index 6c4bf43057e6c..ff39be5def244 100644
--- a/mlir/test/CMakeLists.txt
+++ b/mlir/test/CMakeLists.txt
@@ -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}


        


More information about the Mlir-commits mailing list