diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2025-09-15 10:32:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-15 10:32:24 -0700 |
commit | 6626e6acfee0d22423e258bdcfc8e54045b0d88d (patch) | |
tree | 3023866731546f697ac2c887c691a5ea4ac26dfb /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 488ce6bc486ce5755fb151ce54f1214c7002fe55 (diff) | |
download | llvm-6626e6acfee0d22423e258bdcfc8e54045b0d88d.zip llvm-6626e6acfee0d22423e258bdcfc8e54045b0d88d.tar.gz llvm-6626e6acfee0d22423e258bdcfc8e54045b0d88d.tar.bz2 |
[bazel] Update tblgen rules to support path-mapping (#158354)
Path mapping is a feature of bazel that allows actions to be
deduplicated across bazel transitions if they are otherwise identical.
This is helpful if you build a binary in N transitions, where the
settings differences are irrelevant to this action. In our case we build
multiple python native extensions transitioning on the python version
they target, and before this change would run each of these actions once
per python version even though the outputs would be identical.
This is a no-op unless `--experimental_output_paths=strip` is passed.
The changes here are just enough to make bazel automatically remap the
paths, which is done by how you use the args object. The core change is
that instead of carrying around paths that have `ctx.bin_dir` hardcoded
in the strings. This is done by mapping them with the output file
object's root path when adding them to the args.
As a side effect this drops the genfiles_dir, but that has been the same
as bin_dir for a long time so hopefully that's a no-op for folks.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions