Skip to content

Commit

Permalink
[SCons] Apply long line fix to windows MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Faless committed Sep 25, 2024
1 parent a5334bb commit 3c66820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ def configure_msvc(env: "SConsEnvironment", vcvars_msvc_config):

env["MAXLINELENGTH"] = 8192 # Windows Vista and beyond, so always applicable.

# In case the command line to AR (lib) is too long, use a response file.
env["ARCOM_ORIG"] = env["ARCOM"]
env["ARCOM"] = "${TEMPFILE('$ARCOM_ORIG', '$ARCOMSTR')}"
env["TEMPFILESUFFIX"] = ".rsp"

if env["silence_msvc"] and not env.GetOption("clean"):
from tempfile import mkstemp

Expand Down

0 comments on commit 3c66820

Please sign in to comment.