Skip to content

Commit 79a1a9f

Browse files
author
Alexander Batashev
authored
[SYCL] Optimize builds of SYCL unit tests (#3283)
Exclude KernelAndProgram unit tests from default build target, and only build it with check-sycl
1 parent 496f9a0 commit 79a1a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/cmake/modules/AddSYCLExecutable.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ macro(add_sycl_executable ARG_TARGET_NAME)
2727
endif()
2828
endif()
2929

30-
add_custom_target(${ARG_TARGET_NAME}_exec ALL
30+
add_custom_target(${ARG_TARGET_NAME}_exec
3131
COMMAND ${DEVICE_COMPILER_EXECUTABLE} -fsycl ${ARG_SOURCES}
3232
-o ${CMAKE_CURRENT_BINARY_DIR}/${ARG_TARGET_NAME}
3333
${LINKED_LIBS} ${ARG_OPTIONS} ${_SYCL_EXTRA_FLAGS}

0 commit comments

Comments
 (0)