Skip to content

Commit 8d77631

Browse files
Merge pull request intel#316 from tcreech-intel/hds-clx-5-tr3-topic
CMPLRLLVM-29952: add bin-llvm to PATH for SYCL testing
2 parents 5b155fe + fe9e5e1 commit 8d77631

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm_test_suite_sycl.pl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ sub set_tool_path
302302
}
303303
my $env_path = join($path_sep, $tool_path, $ENV{PATH});
304304
set_envvar("PATH", $env_path, join($path_sep, $tool_path, '$PATH'));
305+
306+
# For the product compiler, add the internal "bin-llvm" directory to PATH.
307+
if ($compiler =~ /xmain/) {
308+
my $llvm_dir = dirname(qx/dpcpp -print-prog-name=llvm-ar/);
309+
my $llvm_path = join($path_sep, $llvm_dir, $ENV{PATH});
310+
set_envvar("PATH", $env_path, join($path_sep, $llvm_path, '$PATH'));
311+
}
312+
305313
}
306314

307315
sub get_info

0 commit comments

Comments
 (0)