Skip to content

Commit

Permalink
[mlir] Exclude CAPI test targets from default build target (#96545)
Browse files Browse the repository at this point in the history
This helps reduce the build time for users that want to build MLIR, but
don't want to run the tests.
  • Loading branch information
tstellar authored Jul 8, 2024
1 parent 46a2abb commit 4f3c9da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/test/CAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f3c9da

Please sign in to comment.