1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Remove ARFLAGS hack for Windows, replace with TEMPFILE

TEMPFILE is the built-in way of SCons to use a response file for command
lines that are too long.
This commit is contained in:
Alvin Wong
2024-09-01 04:03:00 +08:00
parent 61598c5c88
commit 28b95ff550
2 changed files with 11 additions and 18 deletions

View File

@@ -654,6 +654,11 @@ def configure_mingw(env: "SConsEnvironment"):
# https://www.scons.org/wiki/LongCmdLinesOnWin32
env.use_windows_spawn_fix()
# In case the command line to AR is too long, use a response file.
env["ARCOM_ORIG"] = env["ARCOM"]
env["ARCOM"] = "${TEMPFILE('$ARCOM_ORIG', '$ARCOMSTR')}"
env["TEMPFILESUFFIX"] = ".rsp"
## Build type
if not env["use_llvm"] and not try_cmd("gcc --version", env["mingw_prefix"], env["arch"]):