File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,6 @@ jobs:
151
151
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-cov
152
152
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-profdata
153
153
cmake --build $GITHUB_WORKSPACE/build --target install-compiler-rt
154
- # TODO this should be resolved in CMakeLists.txt
155
- cmake --build $GITHUB_WORKSPACE/build --target install-lld || echo "skipped"
156
154
157
155
- name : Pack toolchain
158
156
run : tar -cJf llvm_sycl.tar.xz -C $GITHUB_WORKSPACE/build/install .
Original file line number Diff line number Diff line change @@ -403,6 +403,12 @@ if("hip" IN_LIST SYCL_ENABLE_PLUGINS)
403
403
404
404
add_dependencies (sycl-toolchain libspirv-builtins pi_hip )
405
405
list (APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS libspirv-builtins pi_hip )
406
+
407
+ # On AMD platform lld is also needed
408
+ if ("${SYCL_BUILD_PI_HIP_PLATFORM} " STREQUAL "AMD" )
409
+ add_dependencies (sycl-toolchain lld )
410
+ list (APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS lld )
411
+ endif ()
406
412
endif ()
407
413
408
414
if ("esimd_emulator" IN_LIST SYCL_ENABLE_PLUGINS )
Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ if("${SYCL_BUILD_PI_HIP_PLATFORM}" STREQUAL "AMD")
36
36
37
37
# Set HIP define to select AMD platform
38
38
target_compile_definitions (pi_hip PRIVATE __HIP_PLATFORM_AMD__ )
39
-
40
- # Make sure lld is built as part of the toolchain
41
- add_dependencies (sycl-toolchain lld )
42
39
elseif ("${SYCL_BUILD_PI_HIP_PLATFORM} " STREQUAL "NVIDIA" )
43
40
# Import CUDA libraries
44
41
find_package (CUDA REQUIRED )
You can’t perform that action at this time.
0 commit comments