Skip to content

Commit 856555b

Browse files
authored
[bazel][mlir][test] Skip MathToXeVM when SPIRV is not enabled (llvm#163491)
This passes buildkite CI, but fails downstream if the SPIRV target is not enabled. This is needed after llvm#162934
1 parent c63002e commit 856555b

File tree

1 file changed

+5
-1
lines changed
  • utils/bazel/llvm-project-overlay/mlir/test/Conversion

1 file changed

+5
-1
lines changed

utils/bazel/llvm-project-overlay/mlir/test/Conversion/BUILD.bazel

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("//llvm:lit_test.bzl", "lit_test")
2+
load("//llvm:targets.bzl", "llvm_targets")
23

34
licenses(["notice"])
45

@@ -15,6 +16,9 @@ package(default_visibility = ["//visibility:public"])
1516
)
1617
for src in glob(
1718
include = ["**/*.mlir"],
18-
exclude = ["GPUToROCm/lower-rocdl-kernel-to-hsaco.mlir"],
19+
exclude = ["GPUToROCm/lower-rocdl-kernel-to-hsaco.mlir"] + (
20+
# MathToXeVM needs SPIRV; see MathToXeVM/lit.local.cfg
21+
["MathToXeVM/**"] if "SPIRV" not in llvm_targets else []
22+
),
1923
)
2024
]

0 commit comments

Comments
 (0)