Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 8ee6b8a

Browse files
author
Pavel Chupin
authored
[CI] Fix python executable for windows run (#1467)
It looks like python on windows is always python.exe and on some systems we have python3.exe alias created manually.
1 parent cbbfcc6 commit 8ee6b8a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

SYCL/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ if(CHECK_SYCL_ALL)
2626

2727
string(REPLACE "," "_" TARGET check-sycl-${TARGET_BE}-${TARGET_DEVICES})
2828

29+
if (WIN32)
30+
set(SYCL_PYTHON python.exe)
31+
else()
32+
set(SYCL_PYTHON python3)
33+
endif()
34+
2935
add_custom_target(${TARGET}
30-
COMMAND python3 ${TEST_SUITE_LIT} ${TEST_SUITE_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} .
36+
COMMAND ${SYCL_PYTHON} ${TEST_SUITE_LIT} ${TEST_SUITE_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} .
3137
COMMENT "Running the SYCL tests for ${TARGET} backend"
3238
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
3339
DEPENDS ${TEST_SUITE_TARGETS}

0 commit comments

Comments
 (0)