Skip to content

Commit e246618

Browse files
committed
massage config file
1 parent 600b013 commit e246618

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

buildbot/configure.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ def do_configure(args):
1313
if not os.path.isdir(abs_obj_dir):
1414
os.makedirs(abs_obj_dir)
1515

16-
llvm_external_projects = 'sycl;llvm-spirv;opencl;libdevice;xpti;xptifw'
16+
llvm_external_projects = 'sycl;llvm-spirv;opencl;xpti;xptifw'
17+
18+
# libdevice build requires a working SYCL toolchain, which is not the case
19+
# with macOS target right now.
20+
if sys.platform != "darwin":
21+
llvm_external_projects.append('libdevice')
1722

1823
libclc_amd_target_names = ';amdgcn--;amdgcn--amdhsa'
1924
libclc_nvidia_target_names = 'nvptx64--;nvptx64--nvidiacl'
@@ -109,17 +114,18 @@ def do_configure(args):
109114

110115
# For clang-format, clang-tidy and code coverage
111116
llvm_enable_projects += ";clang-tools-extra;compiler-rt"
112-
# libclc is required for CI validation
113-
if 'libclc' not in llvm_enable_projects and sys.platform != "darwin":
114-
llvm_enable_projects += ';libclc'
115-
# libclc passes `--nvvm-reflect-enable=false`, build NVPTX to enable it
116-
if 'NVPTX' not in llvm_targets_to_build and sys.platform != "darwin":
117-
llvm_targets_to_build += ';NVPTX'
118-
# Add both NVIDIA and AMD libclc targets
119-
if libclc_amd_target_names not in libclc_targets_to_build:
120-
libclc_targets_to_build += libclc_amd_target_names
121-
if libclc_nvidia_target_names not in libclc_targets_to_build:
122-
libclc_targets_to_build += libclc_nvidia_target_names
117+
if sys.platform != "darwin":
118+
# libclc is required for CI validation
119+
if 'libclc' not in llvm_enable_projects:
120+
llvm_enable_projects += ';libclc'
121+
# libclc passes `--nvvm-reflect-enable=false`, build NVPTX to enable it
122+
if 'NVPTX' not in llvm_targets_to_build:
123+
llvm_targets_to_build += ';NVPTX'
124+
# Add both NVIDIA and AMD libclc targets
125+
if libclc_amd_target_names not in libclc_targets_to_build:
126+
libclc_targets_to_build += libclc_amd_target_names
127+
if libclc_nvidia_target_names not in libclc_targets_to_build:
128+
libclc_targets_to_build += libclc_nvidia_target_names
123129

124130
if args.enable_plugin:
125131
sycl_enabled_plugins += args.enable_plugin

0 commit comments

Comments
 (0)