This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 18
18
// RUN: %GPU_RUN_PLACEHOLDER %t_all.out
19
19
// RUN: %ACC_RUN_PLACEHOLDER %t_all.out
20
20
21
- // FIXME: Change the behavior when proper automaton for assert support is
21
+ // FIXME: Change the behavior when proper automation for assert support is
22
22
// introduced
23
23
// Produce object file, spirv, device images to combine these differently
24
24
// at link-time, thus testing various AOT-compiled images configurations
Original file line number Diff line number Diff line change 281
281
if find_executable ('sycl-ls' ):
282
282
config .available_features .add ('sycl-ls' )
283
283
284
- llvm_spirv_path = find_executable ("llvm-spirv" )
285
- if llvm_spirv_path :
286
- lit_config .note ("Found llvm-spirv" )
287
- config .available_features .add ('llvm-spirv' )
288
- config .substitutions .append ( ('%llvm_spirv' , os .path .realpath (llvm_spirv_path )) )
289
- else :
290
- lit_config .warning ("Can't find llvm-spirv" )
291
-
292
- llvm_link_path = find_executable ("llvm-link" )
293
- if llvm_link_path :
294
- lit_config .note ("Found llvm-link" )
295
- config .available_features .add ('llvm-link' )
296
- config .substitutions .append ( ('%llvm_link' , os .path .realpath (llvm_link_path )) )
297
- else :
298
- lit_config .warning ("Can't find llvm-link" )
284
+ llvm_tools = ["llvm-spirv" , "llvm-link" ]
285
+ for llvm_tool in llvm_tools :
286
+ llvm_tool_path = find_executable (llvm_tool )
287
+ if llvm_tool_path :
288
+ lit_config .note ("Found " + llvm_tool )
289
+ config .available_features .add (llvm_tool )
290
+ config .substitutions .append ( ('%' + llvm_tool .replace ('-' , '_' ),
291
+ os .path .realpath (llvm_tool_path )) )
292
+ else :
293
+ lit_config .warning ("Can't find " + llvm_tool )
299
294
300
295
# Device AOT compilation tools aren't part of the SYCL project,
301
296
# so they need to be pre-installed on the machine
You can’t perform that action at this time.
0 commit comments