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

Commit 9e73d50

Browse files
denis-kabanovbader
andauthored
[SYCL] Missing space fix for sycl_hpp_available in lit.cfg (#520)
Fix for sycl_hpp_available in lit.cfg.py which always returns non-zero on windows. Co-authored-by: Alexey Bader <[email protected]>
1 parent 05821f0 commit 9e73d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SYCL/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
fp.write('int main() {}')
205205

206206
extra_sycl_include = ""
207-
sycl_hpp_available = subprocess.getstatusoutput(config.dpcpp_compiler + ' -fsycl ' + check_sycl_hpp_file + ("/c" if cl_options else "-c"))
207+
sycl_hpp_available = subprocess.getstatusoutput(config.dpcpp_compiler + ' -fsycl ' + check_sycl_hpp_file + ' ' + ("/c" if cl_options else "-c"))
208208
if sycl_hpp_available[0] != 0:
209209
lit_config.note('Simple include of sycl/sycl.hpp failed with output: ' + sycl_hpp_available[1] +
210210
'\nUsing fake sycl/sycl.hpp (which just points to CL/sycl.hpp)')

0 commit comments

Comments
 (0)