Disable test generated by gentbl on windows.
either sh_test or the path generation of bazel have problems on windows. PiperOrigin-RevId: 298390766 Change-Id: I2e7f53030d46b3a1a104a140735b1878cd456195
This commit is contained in:
parent
c877732daf
commit
dd662a9228
3
third_party/mlir/tblgen.bzl
vendored
3
third_party/mlir/tblgen.bzl
vendored
@ -57,12 +57,15 @@ def gentbl(name, tblgen, td_file, tbl_outs, td_srcs = [], td_includes = [], stri
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Optionally generate rule to test tblgen invocation.
|
# Optionally generate rule to test tblgen invocation.
|
||||||
|
# Disable these on windows, because $(location ...) does not seem to
|
||||||
|
# work as expected on windows.
|
||||||
if test:
|
if test:
|
||||||
native.sh_test(
|
native.sh_test(
|
||||||
name = "%s_%s_genrule_test" % (name, rule_suffix),
|
name = "%s_%s_genrule_test" % (name, rule_suffix),
|
||||||
srcs = ["%s.gen.sh" % name],
|
srcs = ["%s.gen.sh" % name],
|
||||||
args = base_args,
|
args = base_args,
|
||||||
data = srcs + [tblgen],
|
data = srcs + [tblgen],
|
||||||
|
tags = ["no_windows"],
|
||||||
)
|
)
|
||||||
|
|
||||||
# List of opts that do not generate cc files.
|
# List of opts that do not generate cc files.
|
||||||
|
Loading…
Reference in New Issue
Block a user