summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-10 14:04:09 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-10 14:04:19 +0200
commitbc1aef88eef7bb09d1c537bf150414c50abfa374 (patch)
tree6d1ede5d09f71a070f3c59293aec2e0d93d41cf0
parent013e8e3afb982d4b230f0039b6dc248b48794ab9 (diff)
downloadredot-engine-bc1aef88eef7bb09d1c537bf150414c50abfa374.tar.gz
SCons: Disable misbehaving MSVC incremental linking
Fixes #77968.
-rw-r--r--platform/windows/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index bec1fd2cb6..9548939695 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -355,6 +355,9 @@ def configure_msvc(env, vcvars_msvc_config):
else:
env.AppendUnique(CCFLAGS=["/MD"])
+ # MSVC incremental linking is broken and _increases_ link time (GH-77968).
+ env.Append(LINKFLAGS=["/INCREMENTAL:NO"])
+
if env["arch"] == "x86_32":
env["x86_libtheora_opt_vc"] = True