⚡ Allow targeted C++ lint preparation - #463
Merged
Merged
Conversation
Let callers prepare generated headers without building the default target. Keep the existing full-build behavior when no target is supplied. Assisted-by: GPT-6 via Codex
12 tasks
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.
🤖 AI text below 🤖
Description
C++ lint callers that only need generated headers currently have to build the entire default target. Add an optional
build-targetinput so they can select their header-preparation target. An empty input preserves the current full build.The target is passed through an environment variable and quoted shell array. Header-only callers can use the existing
use-sccache-gha: falseinput because they do not compile C++ code.Validation:
uvx prek run -apasses, including actionlint and zizmor. The exact build-step script was exercised against a small CMake project: the empty input builds the default target, and a named target builds only that target.GPT-6 via Codex implemented and validated this change at the maintainer's request.
Checklist
If PR contains AI-assisted content:
🤖 *AI text below* 🤖(titles are exempt).