Skip to content

Commit 228fd1b

Browse files
authored
[SYCL][E2E] Fix OpenCL lib/include if path has spaces (#17814)
Confirmed working in David's PR [here](https://github.com/intel/llvm/actions/runs/14227019977/job/39869445580?pr=17335), other failures there unrelated. We hit this now because CMake now finds the system OpenCL in a different path that happens to contain a space. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 436191a commit 228fd1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ def open_check_file(file_name):
511511

512512
# Check for OpenCL ICD
513513
if config.opencl_libs_dir:
514+
config.opencl_libs_dir = quote_path(config.opencl_libs_dir)
515+
config.opencl_include_dir = quote_path(config.opencl_include_dir)
514516
if cl_options:
515517
config.substitutions.append(
516518
("%opencl_lib", " " + config.opencl_libs_dir + "/OpenCL.lib")

0 commit comments

Comments
 (0)