diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 2dab110b3877e..222ae37208b59 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -511,6 +511,8 @@ def open_check_file(file_name): # Check for OpenCL ICD if config.opencl_libs_dir: + config.opencl_libs_dir = quote_path(config.opencl_libs_dir) + config.opencl_include_dir = quote_path(config.opencl_include_dir) if cl_options: config.substitutions.append( ("%opencl_lib", " " + config.opencl_libs_dir + "/OpenCL.lib")