mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[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:
@@ -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 []
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user