Skip to content

Commit 209560e

Browse files
authored
[CI] Build LLD when building AMDGPU (#18185)
This fixes the nightly oneAPI test job where we don't build HIP but build AMDGPU and then try to compile an AMDGPU test. [Bad](https://github.com/intel/llvm/actions/runs/14632659184/job/41058003341) [Good](https://github.com/intel/llvm/actions/runs/14647335163/job/41105420068) --------- Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent d585328 commit 209560e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

buildbot/configure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ def do_configure(args, passthrough_args):
7878
sycl_enabled_backends.append("level_zero")
7979
sycl_enabled_backends.append("level_zero_v2")
8080

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-
8581
libclc_enabled = args.cuda or args.hip or args.native_cpu
8682
if libclc_enabled:
8783
llvm_enable_projects += ";libclc"
@@ -171,6 +167,10 @@ def do_configure(args, passthrough_args):
171167
if args.disable_preview_lib:
172168
sycl_preview_lib = "OFF"
173169

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+
174174
install_dir = os.path.join(abs_obj_dir, "install")
175175

176176
cmake_cmd = [

0 commit comments

Comments
 (0)