Skip to content

Commit 9cfb858

Browse files
committed
Fix Windows SYCL link wrapper invocation
1 parent 5ad3e54 commit 9cfb858

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

app/SYCL/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,16 @@ if(WIN32 AND ITLABAI_SYCL_IMPLEMENTATION STREQUAL "IntelLLVM")
3636
"to point to the runtime import library")
3737
endif()
3838

39-
set(CMAKE_CXX_LINK_EXECUTABLE
40-
"python \"${CMAKE_SOURCE_DIR}/scripts/ci/windows_sycl_link.py\" "
39+
string(CONCAT WINDOWS_SYCL_LINK_COMMAND
40+
"\"${Python3_EXECUTABLE}\" "
41+
"\"${CMAKE_SOURCE_DIR}/scripts/ci/windows_sycl_link.py\" "
4142
"--compiler \"${CMAKE_CXX_COMPILER}\" "
4243
"--target <TARGET> "
4344
"--sycl-targets \"${ITLABAI_SYCL_TARGETS}\" "
4445
"--objects <OBJECTS> "
45-
"--libraries <LINK_LIBRARIES>")
46+
"--libraries <LINK_LIBRARIES>"
47+
)
48+
set(CMAKE_CXX_LINK_EXECUTABLE "${WINDOWS_SYCL_LINK_COMMAND}")
4649

4750
set(SYCL_EXAMPLE_KERNEL_OBJECT
4851
"${CMAKE_CURRENT_BINARY_DIR}/SYCL_Example.sycl_kernel.obj")

0 commit comments

Comments
 (0)