Skip to content

Commit 8f4b8e9

Browse files
committed
[SYCL][CI] Add new cmake target"
1 parent 37916ce commit 8f4b8e9

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,7 @@ jobs:
242242
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
243243
# TODO replace utility installation with a single CMake target
244244
run: |
245-
cmake --build $GITHUB_WORKSPACE/build --target utils/FileCheck/install
246-
cmake --build $GITHUB_WORKSPACE/build --target utils/count/install
247-
cmake --build $GITHUB_WORKSPACE/build --target utils/not/install
248-
cmake --build $GITHUB_WORKSPACE/build --target utils/lit/install
249-
cmake --build $GITHUB_WORKSPACE/build --target utils/llvm-lit/install
250-
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-size
251-
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-cov
252-
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-profdata
245+
cmake --build $GITHUB_WORKSPACE/build --target install-auxiliary-tools
253246
cmake --build $GITHUB_WORKSPACE/build --target install-compiler-rt
254247
- name: Additional Install for "--shared-libs" build
255248
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}

.github/workflows/sycl-windows-build.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,7 @@ jobs:
185185
# TODO replace utility installation with a single CMake target
186186
run: |
187187
cmake --build build --target deploy-sycl-toolchain
188-
cmake --build build --target utils/FileCheck/install
189-
cmake --build build --target utils/count/install
190-
cmake --build build --target utils/not/install
191-
cmake --build build --target utils/lit/install
192-
cmake --build build --target utils/llvm-lit/install
193-
cmake --build build --target install-llvm-size
194-
cmake --build build --target install-llvm-cov
195-
cmake --build build --target install-llvm-profdata
188+
cmake --build build --target install-auxiliary-utils
196189
cmake --build build --target install-compiler-rt
197190
- name: Pack toolchain
198191
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}

sycl/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,18 @@ add_custom_target( sycl-toolchain ALL
404404
COMMENT "Building SYCL compiler toolchain..."
405405
)
406406

407+
add_custom_target(install-auxiliary-utils
408+
DEPENDS
409+
utils/FileCheck/install
410+
utils/count/install
411+
utils/not/install
412+
utils/lit/install
413+
utils/llvm-lit/install
414+
install-llvm-size
415+
install-llvm-cov
416+
install-llvm-profdata
417+
)
418+
407419
if (WIN32)
408420
add_dependencies(sycl-toolchain ur_win_proxy_loader)
409421
endif()

0 commit comments

Comments
 (0)