Repository navigation
build: accept "/Fo obj/x.obj" when reading compile_commands.json - #53573
Merged
Merged
Conversation
GN writes "/Fo{{output}}" to compile_commands.json with a space before the
substituted path; Chromium's Windows toolchain used that form until 155
switched to "/Fo$output". gen-clang-tidy-ninja.py only handled the
joined form, so with the spaced one every clang-cl entry parsed to an
empty object path, every step got the output ".tidy", and siso rejected
the file with "multiple rules generates .tidy" (seen on the 42/43/44
backports of #53447). Accept both, and fail with the source file name if
an entry has no object path at all.
codebytere
approved these changes
Sep 5, 2026
|
No Release Notes |
Contributor
|
I was unable to backport this PR to "45-x-y" cleanly; |
3 of 4 tasks
Contributor
|
claude[bot] has manually backported this PR to "45-x-y", please check out #53587 |
claude Bot
pushed a commit
that referenced
this pull request
Sep 5, 2026
) GN writes "/Fo{{output}}" to compile_commands.json with a space before the substituted path; Chromium's Windows toolchain used that form until 155 switched to "/Fo$output". gen-clang-tidy-ninja.py only handled the joined form, so with the spaced one every clang-cl entry parsed to an empty object path, every step got the output ".tidy", and siso rejected the file with "multiple rules generates .tidy" (seen on the 42/43/44 backports of #53447). Accept both, and fail with the source file name if an entry has no object path at all. (cherry picked from commit 2e9208d) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KsGbFEEncB9pNtHMRTPj5Z
MarshallOfSound
pushed a commit
that referenced
this pull request
Sep 5, 2026
) build: accept "/Fo obj/x.obj" when reading compile_commands.json (#53573) GN writes "/Fo{{output}}" to compile_commands.json with a space before the substituted path; Chromium's Windows toolchain used that form until 155 switched to "/Fo$output". gen-clang-tidy-ninja.py only handled the joined form, so with the spaced one every clang-cl entry parsed to an empty object path, every step got the output ".tidy", and siso rejected the file with "multiple rules generates .tidy" (seen on the 42/43/44 backports of #53447). Accept both, and fail with the source file name if an entry has no object path at all. (cherry picked from commit 2e9208d) Claude-Session: https://claude.ai/code/session_01KsGbFEEncB9pNtHMRTPj5Z Co-authored-by: Claude <[email protected]>
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.
Follow-up to #53447, found on its 42/43/44 backports (#53568 #53569 #53570), where the Windows clang-tidy job failed with
multiple rules generates .tidy./Fo{{output}}lands incompile_commands.jsonas/Fo obj/x.obj. Chromium's Windows cc/cxx tools used that form until 155 changed them to/Fo$output(a plain string, so/Foobj/x.obj).gen-clang-tidy-ninja.pyonly handled the joined form; with the spaced one every clang-cl entry parsed to an empty object path and every step got the output.tidy.Notes: none