Skip to content

Commit 2880673

Browse files
authored
[SYCL][E2E] Add sycl-toolchain as a dependency (#8988)
`check-sycl-e2e-*` test the SYCL toolchain, so we should make sure it is up-to-date.
1 parent 29cc3a8 commit 2880673

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sycl/test-e2e/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ find_package(Python3 REQUIRED COMPONENTS Interpreter)
3636
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in"
3737
"${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg")
3838

39+
if(NOT SYCL_TEST_E2E_STANDALONE)
40+
list(APPEND SYCL_E2E_TEST_DEPS
41+
sycl-toolchain
42+
)
43+
endif() # Standalone.
44+
3945
if(SYCL_TEST_E2E_TARGETS)
4046
message("Configure iterative execution on multiple backends")
4147
add_custom_target(check-sycl-e2e)
@@ -58,6 +64,7 @@ if(SYCL_TEST_E2E_TARGETS)
5864
add_custom_target(${TARGET}
5965
COMMAND ${Python3_EXECUTABLE} ${LLVM_LIT} ${SYCL_E2E_TESTS_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} .
6066
COMMENT "Running the SYCL tests for ${TARGET} backend"
67+
DEPENDS ${SYCL_E2E_TEST_DEPS}
6168
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
6269
USES_TERMINAL
6370
)

0 commit comments

Comments
 (0)