[Mlir-commits] [mlir] [mlir] Exclude CAPI test targets from default build target (PR #96545)
Tom Stellard
llvmlistbot at llvm.org
Mon Jun 24 13:06:01 PDT 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/96545
This helps reduce the build time for users that want to build MLIR, but don't want to run the tests.
>From f3c85486b93480bbe30a9744fa68a88c64a55e83 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Mon, 24 Jun 2024 20:02:44 +0000
Subject: [PATCH] [mlir] Exclude CAPI test targets from default build target
This helps reduce the build time for users that want to build MLIR,
but don't want to run the tests.
---
mlir/test/CAPI/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/test/CAPI/CMakeLists.txt b/mlir/test/CAPI/CMakeLists.txt
index 76bd4e60f77b2..ad312764b3e06 100644
--- a/mlir/test/CAPI/CMakeLists.txt
+++ b/mlir/test/CAPI/CMakeLists.txt
@@ -10,6 +10,7 @@ function(_add_capi_test_executable name)
PARTIAL_SOURCES_INTENDED
${ARG_UNPARSED_ARGUMENTS})
set_target_properties(${name} PROPERTIES FOLDER "MLIR/Tests")
+ set_target_properties(${name} PROPERTIES EXCLUDE_FROM_ALL ON)
llvm_update_compile_flags(${name})
if(MLIR_BUILD_MLIR_C_DYLIB)
More information about the Mlir-commits
mailing list