Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit e119c17

Browse files
committed
Fix build issue
1 parent f5a24ab commit e119c17

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SYCL/Basic/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
llvm_config.with_system_environment('LIB')
5656
llvm_config.with_environment('LIB', config.sycl_libs_dir, append_path=True)
5757
llvm_config.with_environment('PATH', config.sycl_libs_dir, append_path=True)
58-
llvm_config.with_environment('LIB', os.path.join(dpcpp_root_dir, 'lib'), append_path=True)
58+
llvm_config.with_environment('LIB', os.path.join(config.dpcpp_root_dir, 'lib'), append_path=True)
5959

6060
elif platform.system() == "Darwin":
6161
# FIXME: surely there is a more elegant way to instantiate the Xcode directories.

SYCL/Basic/lit.site.cfg.py.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import platform
55

66

77
config.dpcpp_compiler = lit_config.params.get("dpcpp_compiler", "@CMAKE_CXX_COMPILER@")
8-
dpcpp_root_dir= os.path.dirname(os.path.dirname(config.dpcpp_compiler))
8+
config.dpcpp_root_dir= os.path.dirname(os.path.dirname(config.dpcpp_compiler))
99

10-
config.llvm_tools_dir = os.path.join(dpcpp_root_dir, 'bin')
10+
config.llvm_tools_dir = os.path.join(config.dpcpp_root_dir, 'bin')
1111
config.lit_tools_dir = os.path.dirname("@TEST_SUITE_LIT@")
1212
config.dump_ir_supported = lit_config.params.get("dump_ir", ("@DUMP_IR_SUPPORTED@" if "@DUMP_IR_SUPPORTED@" else False))
1313
config.sycl_tools_dir = config.llvm_tools_dir
14-
config.sycl_include = os.path.join(dpcpp_root_dir, 'include', 'sycl')
14+
config.sycl_include = os.path.join(config.dpcpp_root_dir, 'include', 'sycl')
1515
config.sycl_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
16-
config.sycl_libs_dir = os.path.join(dpcpp_root_dir, ('bin' if platform.system() == "Windows" else 'lib'))
16+
config.sycl_libs_dir = os.path.join(config.dpcpp_root_dir, ('bin' if platform.system() == "Windows" else 'lib'))
1717
config.target_triple = "x86_64-unknown-unknown-gnu"
1818
config.host_triple = "x86_64-unknown-unknown-gnu"
1919
config.opencl_libs_dir = config.sycl_libs_dir

0 commit comments

Comments
 (0)