Skip to content

Commit

Permalink
[SCons] Apply long line fix to windows MSVC
Browse files Browse the repository at this point in the history
Also lower max line length
  • Loading branch information
Faless committed Sep 25, 2024
1 parent c3e16cd commit 3e9e312
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,12 @@ def configure_msvc(env: "SConsEnvironment", vcvars_msvc_config):
env.AppendUnique(CPPDEFINES=["R128_STDC_ONLY"])
env.extra_suffix = ".llvm" + env.extra_suffix

env["MAXLINELENGTH"] = 8192 # Windows Vista and beyond, so always applicable.
env["MAXLINELENGTH"] = 2048 # Same as SCons default

# 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 3e9e312

Please sign in to comment.