Repository navigation
Commit c54ccc6
authored
[bazel] Avoid deprecated ctx.outputs.executable and output_to_genfiles (#241742)
Modernize custom Starlark rules in `binary_alias.bzl` and
`mlir/tblgen.bzl`:
- Declare executable outputs explicitly via `ctx.actions.declare_file`
and return them in `DefaultInfo(files = ..., executable = ...)` instead
of relying on the deprecated `ctx.outputs.executable` predeclared
output.
- Remove the deprecated no-op `output_to_genfiles = True` argument from
`gentbl_shard_rule`.
Assisted-by: Gemini1 parent c75229f commit c54ccc6
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | | - | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
| |||
473 | 478 | | |
474 | 479 | | |
475 | 480 | | |
476 | | - | |
477 | 481 | | |
478 | 482 | | |
479 | 483 | | |
| |||
0 commit comments