Fix the GCC 12 Release build for Windows-to-POSIX path translation #23
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/JamesCicada--GTAVI-Recomp!23
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-23"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RavenCurseBurg on GitHub · 2026-11-25 19:13 UTC · original
RavenCurseBurg:fix/gcc12-root-mount→main· +7 −7 · 2 files · 1 commits · openOn Debian 12 with GCC 12.2, the Release build with warnings as errors fails in
windows_to_posix. GCC emits-Wrestrictwhen the function strips the slash from a root mount and assigns"/"back to the empty string. Build log on mainDriveMap::with_mappingsalready removes trailing separators and keeps the POSIX root as"/". The translator can use that stored mount directly. The added test maps drive R to///and checks that its drive root becomes/.Debian 12 (GCC 12.2) and Fedora 44 (GCC 16.2) now pass all three CTests with Release optimization and the existing warning flags. A Windows x64 MinGW GCC 15.2 Release build also passed all three. I compared 700 CLI translations across five mount configurations on Windows. All outputs matched main byte for byte. Debian and Fedora verification
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.