Skip to content

[4.3] Cherry-pick Windows build system fixes to fix command too long error - #113846

Open
aaronfranke wants to merge 3 commits into
godotengine:4.3from
aaronfranke:4.3-windows-build-fixes
Open

[4.3] Cherry-pick Windows build system fixes to fix command too long error#113846
aaronfranke wants to merge 3 commits into
godotengine:4.3from
aaronfranke:4.3-windows-build-fixes

Conversation

@aaronfranke

Copy link
Copy Markdown
Member

This PR cherry-picks PR #96407, PR #97188, and PR #97458, fixing issue #99710 in the Godot 4.3 branch. In general 4.3 is considered EOL, but buildsystem fixes are still valid to backport.

I have a large module which supports multiple Godot versions, all the way back to Godot 4.3. However, the module is now big enough that I am getting an error "The command line is too long" when compiling on Windows (it actually doesn't trigger on my machine, but it triggers on CI and on another person's machine, and I believe it's gotta be close to the limit on my machine too).

This PR cherry-picks those 3 PRs to fix this problem. I have tested that this works, the CI successfully compiles with these fixes.

Disclaimer: I am far from an expert on this specific code. The only thing I have done is perform the cherry-picks and test that this fixes the problem. I did not test every combination of the individual PRs to see which specific ones are needed to fix the problem, I just tested all of them in one go and it worked.

@aaronfranke aaronfranke added this to the 4.3 milestone Dec 10, 2025
@aaronfranke
aaronfranke requested review from a team as code owners December 10, 2025 13:25
alvinhochun and others added 3 commits April 8, 2026 09:19
TEMPFILE is the built-in way of SCons to use a response file for command
lines that are too long.

(cherry picked from commit 28b95ff)
Set `TEMPFILEARGESCFUNC`[1] to replace backslashes with forward slashes
in paths.

[1]: https://scons.org/doc/production/HTML/scons-user/apa.html#cv-TEMPFILEARGESCFUNC

(cherry picked from commit 4542516)
It's not clear what is the actual max value that windows support, but
despite their claim of it being 8191 we have been seeing failure with
just 8150.

(cherry picked from commit 395a4fc)
@aaronfranke
aaronfranke force-pushed the 4.3-windows-build-fixes branch from a5268f9 to 5afbf76 Compare April 8, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants