From f53d35fcfebe09eab982fc0629f8120e1d7e40e6 Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Tue, 7 Mar 2023 09:11:08 -0800 Subject: [PATCH] [TESTS] Now using downloaded FileCheck directly without copying it (#1293) --- bin/CMakeLists.txt | 7 ------- test/CMakeLists.txt | 4 +++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index af18de3ee140..aa356b900dbf 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -1,10 +1,3 @@ -add_custom_target(copy-FileCheck ALL - COMMAND ${CMAKE_COMMAND} -E copy - "${LLVM_LIBRARY_DIR}/../bin/FileCheck" - "${CMAKE_CURRENT_BINARY_DIR}/FileCheck" - COMMENT "Copying FileCheck to the current directory" -) - get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7d59c4668947..6ec6fc0ab2ac 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,11 +13,13 @@ configure_lit_site_cfg( set(TRITON_TEST_DEPENDS triton-opt - copy-FileCheck ) +set(FILECHECK_PATH "${LLVM_LIBRARY_DIR}/../bin/FileCheck") +set(LIT_ARGS "-Dfilecheck=${FILECHECK_PATH}") add_lit_testsuite(check-triton-lit-tests "Running the triton regression tests" ${CMAKE_CURRENT_BINARY_DIR} + ARGS ${LIT_ARGS} DEPENDS ${TRITON_TEST_DEPENDS} )