File tree Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ jobs:
112
112
- name : check-sycl-unittests
113
113
if : always() && !cancelled() && contains(inputs.changes, 'sycl')
114
114
run : |
115
+ cmake --version
115
116
cmake --build build --target check-sycl-unittests
116
117
- name : check-llvm-spirv
117
118
if : always() && !cancelled() && contains(inputs.changes, 'llvm_spirv')
Original file line number Diff line number Diff line change @@ -37,16 +37,29 @@ macro(add_sycl_unittest test_dirname link_variant)
37
37
)
38
38
endif ()
39
39
40
- add_custom_target (check-sycl-${test_dirname}
41
- ${CMAKE_COMMAND} -E env
42
- LLVM_PROFILE_FILE= "${SYCL_COVERAGE_PATH} /${test_dirname} .profraw"
43
- env SYCL_CONFIG_FILE_NAME=null.cfg
44
- env SYCL_DEVICELIB_NO_FALLBACK=1
45
- env SYCL_CACHE_DIR= "${CMAKE_BINARY_DIR} /sycl_cache"
46
- ${CMAKE_CURRENT_BINARY_DIR} /${test_dirname}
47
- DEPENDS
48
- ${test_dirname}
49
- )
40
+ if (WIN32 )
41
+ add_custom_target (check-sycl-${test_dirname}
42
+ ${CMAKE_COMMAND} -E env
43
+ LLVM_PROFILE_FILE= "${SYCL_COVERAGE_PATH} /${test_dirname} .profraw"
44
+ SYCL_CONFIG_FILE_NAME=null.cfg
45
+ SYCL_DEVICELIB_NO_FALLBACK=1
46
+ SYCL_CACHE_DIR= "${CMAKE_BINARY_DIR} /sycl_cache"
47
+ ${CMAKE_CURRENT_BINARY_DIR} /${test_dirname}
48
+ DEPENDS
49
+ ${test_dirname}
50
+ )
51
+ else ()
52
+ add_custom_target (check-sycl-${test_dirname}
53
+ ${CMAKE_COMMAND} -E env
54
+ LLVM_PROFILE_FILE= "${SYCL_COVERAGE_PATH} /${test_dirname} .profraw"
55
+ env SYCL_CONFIG_FILE_NAME=null.cfg
56
+ env SYCL_DEVICELIB_NO_FALLBACK=1
57
+ env SYCL_CACHE_DIR= "${CMAKE_BINARY_DIR} /sycl_cache"
58
+ ${CMAKE_CURRENT_BINARY_DIR} /${test_dirname}
59
+ DEPENDS
60
+ ${test_dirname}
61
+ )
62
+ endif ()
50
63
51
64
add_dependencies (check-sycl-unittests check-sycl-${test_dirname} )
52
65
You can’t perform that action at this time.
0 commit comments