@@ -13,7 +13,12 @@ def do_configure(args):
13
13
if not os .path .isdir (abs_obj_dir ):
14
14
os .makedirs (abs_obj_dir )
15
15
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' )
17
22
18
23
libclc_amd_target_names = ';amdgcn--;amdgcn--amdhsa'
19
24
libclc_nvidia_target_names = 'nvptx64--;nvptx64--nvidiacl'
@@ -109,17 +114,18 @@ def do_configure(args):
109
114
110
115
# For clang-format, clang-tidy and code coverage
111
116
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
123
129
124
130
if args .enable_plugin :
125
131
sycl_enabled_plugins += args .enable_plugin
0 commit comments