[bazel][mlir][test] Skip MathToXeVM when SPIRV is not enabled (#163491)

This passes buildkite CI, but fails downstream if the SPIRV target is
not enabled.

This is needed after #162934
This commit is contained in:
Jordan Rupprecht
2025-10-14 23:17:32 -05:00
committed by GitHub
parent c63002eb9a
commit 856555bfd8

View File

@@ -1,4 +1,5 @@
load("//llvm:lit_test.bzl", "lit_test")
load("//llvm:targets.bzl", "llvm_targets")
licenses(["notice"])
@@ -15,6 +16,9 @@ package(default_visibility = ["//visibility:public"])
)
for src in glob(
include = ["**/*.mlir"],
exclude = ["GPUToROCm/lower-rocdl-kernel-to-hsaco.mlir"],
exclude = ["GPUToROCm/lower-rocdl-kernel-to-hsaco.mlir"] + (
# MathToXeVM needs SPIRV; see MathToXeVM/lit.local.cfg
["MathToXeVM/**"] if "SPIRV" not in llvm_targets else []
),
)
]