Skip to content

Commit 5965a56

Browse files
authored
[SYCL][E2E] Fix fallback code path from #18627 (#18753)
Fix the fallback code path taken when `clang --print-prog-name` fails. The fallback code in 871e907 ([SYCL][E2E] Better handle the Intel Compiler in standalone build (NFC) (#18627)) is broken, it uses the wrong variable name (`tool` instead of `name`) and refers to the unqualified `CalledProcessError` without importing it.
1 parent 2a1528f commit 5965a56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test-e2e/lit.site.cfg.py.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ config.dpcpp_bin_dir = os.path.join(config.dpcpp_root_dir, 'bin')
1515
def get_dpcpp_tool_path(name):
1616
try:
1717
return subprocess.check_output([config.dpcpp_compiler, "-print-prog-name=" + name], text=True)
18-
except CalledProcessError:
19-
return os.path.join(config.dpcpp_bin_dir, tool)
18+
except subprocess.CalledProcessError:
19+
return os.path.join(config.dpcpp_bin_dir, name)
2020

2121
config.llvm_tools_dir = os.path.dirname(get_dpcpp_tool_path("llvm-config"))
2222
config.lit_tools_dir = os.path.dirname("@TEST_SUITE_LIT@")

0 commit comments

Comments
 (0)