Skip to content

Allow toolchain features to mark paths for path mapping#28794

Draft
fmeum wants to merge 2 commits intobazelbuild:masterfrom
fmeum:335-artifact-chunk-2
Draft

Allow toolchain features to mark paths for path mapping#28794
fmeum wants to merge 2 commits intobazelbuild:masterfrom
fmeum:335-artifact-chunk-2

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Feb 25, 2026

Description

rules_cc's rule-based toolchain can now inject paths into toolchain features that will be recognized as exec paths and path mapped appropriately by wrapping them in ${path:<the path>}.

Motivation

Work towards cerisier/toolchains_llvm_bootstrapped#335

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

Switch from abstract classes to interfaces to enable widespread migration to records and delete a bunch of dead code.
@fmeum fmeum marked this pull request as draft February 25, 2026 14:14
@fmeum fmeum removed request for lberki and pzembrod February 25, 2026 14:14
@github-actions github-actions bot added team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels Feb 25, 2026
@fmeum fmeum changed the title 335 artifact chunk 2 Allow toolchain features to mark paths for path mapping Feb 25, 2026
@fmeum
Copy link
Collaborator Author

fmeum commented Feb 25, 2026

@bazel-io fork 9.1.0

@fmeum
Copy link
Collaborator Author

fmeum commented Feb 25, 2026

The corresponding rules_cc PR is bazelbuild/rules_cc#609. When the current PR has been merged, I will amend the rules_cc PR with a bazel_features check for ${path:...} support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Rules-CPP Issues for C++ rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant