Skip to content

Commit 451fb2d

Browse files
authored
[CI] Build llvm-spirv with spirv-dis support (#17225)
This requires SPIR-V Tools to be installed, which we did on all the self hosted Windows runners and it's in the docker for the Linux ones. This flag was somewhat recently added, and before that it used SPIR-V tools automatically if it could find it, so this _might_ also be returning us to old behavior. Either way, let's enable it if `--ci-defaults` is passed, some tests could rely on this in the future. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent c1cc1f2 commit 451fb2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildbot/configure.py

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def do_configure(args):
6565
sycl_enable_xpti_tracing = "ON"
6666
xpti_enable_werror = "OFF"
6767
llvm_enable_zstd = "ON"
68+
spirv_enable_dis = "OFF"
6869

6970
if sys.platform != "darwin":
7071
# For more info on the enablement of level_zero_v2 refer to this document:
@@ -156,6 +157,7 @@ def do_configure(args):
156157
if libclc_nvidia_target_names not in libclc_targets_to_build:
157158
libclc_targets_to_build += libclc_nvidia_target_names
158159
libclc_gen_remangled_variants = "ON"
160+
spirv_enable_dis = "ON"
159161

160162
if args.enable_backends:
161163
sycl_enabled_backends += args.enable_backends
@@ -193,6 +195,7 @@ def do_configure(args):
193195
"-DBUILD_SHARED_LIBS={}".format(llvm_build_shared_libs),
194196
"-DSYCL_ENABLE_XPTI_TRACING={}".format(sycl_enable_xpti_tracing),
195197
"-DLLVM_ENABLE_LLD={}".format(llvm_enable_lld),
198+
"-DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS={}".format(spirv_enable_dis),
196199
"-DXPTI_ENABLE_WERROR={}".format(xpti_enable_werror),
197200
"-DSYCL_CLANG_EXTRA_FLAGS={}".format(sycl_clang_extra_flags),
198201
"-DSYCL_ENABLE_BACKENDS={}".format(";".join(set(sycl_enabled_backends))),

0 commit comments

Comments
 (0)