File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,6 @@ def do_configure(args, passthrough_args):
78
78
sycl_enabled_backends .append ("level_zero" )
79
79
sycl_enabled_backends .append ("level_zero_v2" )
80
80
81
- # lld is needed on Windows or for the HIP adapter on AMD
82
- if platform .system () == "Windows" or (args .hip and args .hip_platform == "AMD" ):
83
- llvm_enable_projects += ";lld"
84
-
85
81
libclc_enabled = args .cuda or args .hip or args .native_cpu
86
82
if libclc_enabled :
87
83
llvm_enable_projects += ";libclc"
@@ -171,6 +167,10 @@ def do_configure(args, passthrough_args):
171
167
if args .disable_preview_lib :
172
168
sycl_preview_lib = "OFF"
173
169
170
+ # lld is needed on Windows or when building AMDGPU
171
+ if platform .system () == "Windows" or "AMDGPU" in llvm_targets_to_build :
172
+ llvm_enable_projects += ";lld"
173
+
174
174
install_dir = os .path .join (abs_obj_dir , "install" )
175
175
176
176
cmake_cmd = [
You can’t perform that action at this time.
0 commit comments