Skip to content

Commit 3460ab7

Browse files
committed
reduce extend calls
1 parent 546df5f commit 3460ab7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/bazel/llvm-project-overlay/mlir/tblgen.bzl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,11 @@ def _gentbl_test_impl(ctx):
229229
test_args = [ctx.executable.tblgen.short_path]
230230
test_args.extend(ctx.attr.opts)
231231
test_args.append(td_file.path)
232-
for include in trans_includes.to_list():
233-
test_args.extend(["-I", include])
234-
test_args.extend(["-I", paths.join(ctx.bin_dir.path, include)])
232+
test_args.extend([
233+
arg
234+
for include in trans_includes.to_list()
235+
for arg in ["-I", include, "-I", paths.join(ctx.bin_dir.path, include)]
236+
])
235237

236238
test_args.extend(["-o", "/dev/null"])
237239

0 commit comments

Comments
 (0)