Revert "Extract common toolchain features (#85) (#113)" - #120
Merged
Conversation
nradakovic
requested review from
AlexanderLanin,
antonkri and
dcalavrezo-qorix
as code owners
August 19, 2026 13:59
Contributor
There was a problem hiding this comment.
Pull request overview
Reverts commit 75330be32473069cff3881a1f79ad8ee156e9c6f, undoing the “Extract common toolchain features” refactor by removing the shared-features template and re-inlining those feature definitions into the Linux and QNX GCC toolchain config templates.
Changes:
- Inline previously shared toolchain feature definitions back into
templates/linuxandtemplates/qnxcc toolchain config templates. - Remove generation/wiring of the shared-features template from the GCC repository rule and module extension.
- Update
tests/MODULE.bazel.lockto drop the now-removedcc_toolchain_shared_featuresattribute and reflect updated digests.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/MODULE.bazel.lock | Updates recorded module extension/toolchain attributes and digest after reverting shared-features extraction. |
| templates/qnx/cc_toolchain_config.bzl.template | Re-inlines shared feature/action lists and feature definitions directly into the QNX toolchain config template. |
| templates/linux/cc_toolchain_config.bzl.template | Re-inlines shared feature/action lists and feature definitions directly into the Linux toolchain config template. |
| templates/cc_toolchain_shared_features.bzl.template | Removes the shared-features template introduced by the reverted commit. |
| rules/gcc.bzl | Stops templating shared_features.bzl and removes the repository_rule attribute for the shared-features template. |
| extensions/gcc.bzl | Stops propagating cc_toolchain_shared_features in toolchain dictionaries and when instantiating gcc_toolchain. |
Suppressed comments (1)
templates/linux/cc_toolchain_config.bzl.template:1079
- This blank line contains trailing whitespace. Removing it avoids noise in diffs and helps keep generated templates stable across editors/formatters.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
antonkri
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reverts commit 75330be.