Skip to content

Commit b8f99bc

Browse files
committed
[SYCL] Add check-libclc to CI test
1 parent d494595 commit b8f99bc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ jobs:
137137
if: always()
138138
run: |
139139
cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
140+
- name: check-libclc
141+
if: always()
142+
run: |
143+
cmake --build $GITHUB_WORKSPACE/build --target check-libclc
140144
- name: Install
141145
# TODO replace utility installation with a single CMake target
142146
run: |

buildbot/configure.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,17 @@ def do_configure(args):
4343
sycl_enable_xpti_tracing = 'ON'
4444
xpti_enable_werror = 'ON'
4545

46+
build_libclc = False
47+
4648
if args.ci_defaults:
4749
print("#############################################")
4850
print("# Default CI configuration will be applied. #")
4951
print("#############################################")
5052

5153
# For clang-format and clang-tidy
5254
llvm_enable_projects += ";clang-tools-extra"
55+
# libclc is required for CI validation
56+
build_libclc = True
5357

5458
# replace not append, so ARM ^ X86
5559
if args.arm:
@@ -59,7 +63,7 @@ def do_configure(args):
5963
sycl_build_pi_esimd_emulator = 'ON'
6064

6165
if args.cuda or args.hip:
62-
llvm_enable_projects += ';libclc'
66+
build_libclc = True
6367

6468
if args.cuda:
6569
llvm_targets_to_build += ';NVPTX'
@@ -101,6 +105,9 @@ def do_configure(args):
101105
if args.use_lld:
102106
llvm_enable_lld = 'ON'
103107

108+
if build_libclc:
109+
llvm_enable_projects += ';libclc'
110+
104111
install_dir = os.path.join(abs_obj_dir, "install")
105112

106113
cmake_cmd = [

0 commit comments

Comments
 (0)