Skip to content

[9.1.0] Allow toolchain features to mark paths for path mapping (https://github.com/bazelbuild/bazel/pull/28794)#29187

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28794-9.1.0-164307
Apr 1, 2026
Merged

[9.1.0] Allow toolchain features to mark paths for path mapping (https://github.com/bazelbuild/bazel/pull/28794)#29187
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28794-9.1.0-164307

Conversation

@bazel-io
Copy link
Copy Markdown
Member

@bazel-io bazel-io commented Apr 1, 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 hermeticbuild/hermetic-llvm#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

Closes #28794.

PiperOrigin-RevId: 892975371
Change-Id: I4178e05786e465feda5af96ee5725bfb31a8684d

Commit 41a36ff

…8794)

### 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 hermeticbuild/hermetic-llvm#335

### Build API Changes

No

### Checklist

- [x] I have added tests for the new use cases (if any).
- [ ] I have updated the documentation (if applicable).

### Release Notes

RELNOTES: None

Closes bazelbuild#28794.

PiperOrigin-RevId: 892975371
Change-Id: I4178e05786e465feda5af96ee5725bfb31a8684d
@bazel-io bazel-io added team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels Apr 1, 2026
@bazel-io bazel-io requested a review from trybka April 1, 2026 16:43
@bazel-io bazel-io added team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels Apr 1, 2026
@bazel-io bazel-io requested a review from a team as a code owner April 1, 2026 16:43
@iancha1992 iancha1992 added this pull request to the merge queue Apr 1, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit 3938650 Apr 1, 2026
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-CPP Issues for C++ rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants