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

Commit ff71a20

Browse files
authored
Fix check for availability of sycl.hpp (#445)
1 parent bd1668a commit ff71a20

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
@@ -197,7 +197,7 @@
197197

198198
extra_sycl_include = ""
199199
sycl_hpp_available = subprocess.getstatusoutput(config.dpcpp_compiler+' -fsycl ' + check_sycl_hpp_file)
200-
if sycl_hpp_available != 0:
200+
if sycl_hpp_available[0] != 0:
201201
extra_sycl_include = " " + ("/I" if cl_options else "-I") + config.extra_include
202202

203203
config.substitutions.append( ('%clangxx', ' '+ config.dpcpp_compiler + ' ' + config.cxx_flags + ' ' + arch_flag + extra_sycl_include) )

0 commit comments

Comments
 (0)