[llvm] [bazel] Update tblgen rules to support path-mapping (PR #158354)
Aaron Siddhartha Mondal via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 14 13:02:20 PDT 2025
================
@@ -234,15 +222,16 @@ def _gentbl_test_impl(ctx):
# workspace is not the main workspace. Therefore it is not included in the
# _resolve_includes call that prepends this prefix.
trans_includes = _get_transitive_includes(
- _resolve_includes(ctx, ctx.attr.includes + ["/"]) +
- _prefix_roots(ctx, [td_file.dirname]),
+ _resolve_includes(ctx, ctx.attr.includes + ["/"]) + [td_file.dirname],
ctx.attr.deps,
)
test_args = [ctx.executable.tblgen.short_path]
----------------
aaronmondal wrote:
Sidenode: I don't immediately see how, but surely this can be expressed via `ctx.actions.args()`. Not relevant to this PR though.
https://github.com/llvm/llvm-project/pull/158354
More information about the llvm-commits
mailing list