File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3535#
3636# SYCL_ADD_LIBRARY
3737
38+ if (NOT CMAKE_SYCL_COMPILER_LAUNCHER AND DEFINED ENV{CMAKE_SYCL_COMPILER_LAUNCHER})
39+ set (CMAKE_SYCL_COMPILER_LAUNCHER "$ENV{CMAKE_SYCL_COMPILER_LAUNCHER} "
40+ CACHE STRING "Compiler launcher for SYCL." )
41+ endif ()
42+
3843macro (SYCL_FIND_HELPER_FILE _name _extension)
3944 set (_full_name "${_name} .${_extension} " )
4045 # CMAKE_CURRENT_LIST_FILE contains the full path to the file currently being
@@ -405,7 +410,7 @@ macro(SYCL_LINK_DEVICE_OBJECTS output_file sycl_target)
405410 add_custom_command (
406411 OUTPUT ${output_file}
407412 DEPENDS ${object_files}
408- COMMAND ${SYCL_EXECUTABLE}
413+ COMMAND ${CMAKE_SYCL_COMPILER_LAUNCHER} ${ SYCL_EXECUTABLE}
409414 ${SYCL_device_link_flags}
410415 -fsycl-link ${object_files}
411416 -Xs ${SYCL_OFFLINE_COMPILER_FLAGS}
You can’t perform that action at this time.
0 commit comments