summaryrefslogtreecommitdiffstats
path: root/platform/windows/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-11 10:33:00 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-11 10:33:00 +0200
commit478b80310ccbaaaa028d09d567d504ce8aace5bb (patch)
tree390a349ca4f90b00f3f5a6b6e34efbf459ab8abf /platform/windows/detect.py
parenta22cadfee92c6ee0c70a6168b643b581fb61e07f (diff)
parentbc1aef88eef7bb09d1c537bf150414c50abfa374 (diff)
downloadredot-engine-478b80310ccbaaaa028d09d567d504ce8aace5bb.tar.gz
Merge pull request #80482 from akien-mga/scons-msvc-disable-incremental-linking
SCons: Disable misbehaving MSVC incremental linking
Diffstat (limited to 'platform/windows/detect.py')
-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