File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 271
271
else :
272
272
arch_flag = ""
273
273
274
- # Add an extra include directory which points to a fake sycl/sycl.hpp (which just points to CL/sycl.hpp)
275
- # location to workaround compiler versions which do not provide this header
276
- check_sycl_hpp_file = 'sycl_hpp_include.cpp'
277
- with open (check_sycl_hpp_file , 'w' ) as fp :
278
- fp .write ('#include <sycl/sycl.hpp>\n ' )
279
- fp .write ('int main() {}' )
280
-
281
- extra_sycl_include = ""
282
- sycl_hpp_available = subprocess .getstatusoutput (config .dpcpp_compiler + ' -fsycl ' + check_sycl_hpp_file + ' ' + ("/c" if cl_options else "-c" ))
283
- if sycl_hpp_available [0 ] != 0 :
284
- lit_config .note ('Simple include of sycl/sycl.hpp failed with output: ' + sycl_hpp_available [1 ] +
285
- '\n Using fake sycl/sycl.hpp (which just points to CL/sycl.hpp)' )
286
- extra_sycl_include = " " + ("/I" if cl_options else "-I" ) + config .extra_include
287
-
288
274
if lit_config .params .get ('compatibility_testing' , False ):
289
275
config .substitutions .append ( ('%clangxx' , ' true ' ) )
290
276
config .substitutions .append ( ('%clang' , ' true ' ) )
291
277
else :
292
- config .substitutions .append ( ('%clangxx' , ' ' + config .dpcpp_compiler + ' ' + config .cxx_flags + ' ' + arch_flag + extra_sycl_include ) )
293
- config .substitutions .append ( ('%clang' , ' ' + config .dpcpp_compiler + ' ' + config .c_flags + extra_sycl_include ) )
278
+ config .substitutions .append ( ('%clangxx' , ' ' + config .dpcpp_compiler + ' ' + config .cxx_flags + ' ' + arch_flag ) )
279
+ config .substitutions .append ( ('%clang' , ' ' + config .dpcpp_compiler + ' ' + config .c_flags ) )
294
280
295
281
config .substitutions .append ( ('%threads_lib' , config .sycl_threads_lib ) )
296
282
You can’t perform that action at this time.
0 commit comments