Repository navigation
Build: reserve the default Windows thread stack on GNU targets - #1
Open
MichaelSmithAI wants to merge 1 commit into
Open
MichaelSmithAI wants to merge 1 commit into
MichaelSmithAI wants to merge 1 commit into
Conversation
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 extends the Windows executable setting from Marvisak#151 to Rust’s GNU and GNU/LLVM Windows targets. A Win64 GNU/LLVM build of VIctory still had the linker’s default 1 MiB stack reserve. The build script now passes the GNU linker’s stack option on those targets and keeps the existing MSVC option.
We inspected the PE headers of actual Win64 GNU/LLVM builds on main
ffe310ebefore and after applying the setting. The stack reserve changed from 1 MiB to 16 MiB, with the initial commit at 4 KiB in both executables. Two small Wine 11.22 controls linked with the matching settings created an ordinaryCreateThreadwith a default stack size. Inside each thread the observed reservation matched its respective executable header, and both controls exited 0.On the proposed branch, the build script emitted the expected options for Windows MSVC, GNU and GNU/LLVM and emitted no linker option for Linux GNU. The asset check passed. Game behavior with a GNU-built executable remains unmeasured.
AI-assisted implementation and verification.