From 32b7664371bbd6c37882d4d2c4b543bdc3027a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 10 Aug 2023 14:04:09 +0200 Subject: [PATCH] SCons: Disable misbehaving MSVC incremental linking Fixes #77968. (cherry picked from commit bc1aef88eef7bb09d1c537bf150414c50abfa374) --- platform/windows/detect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index bec1fd2cb63..9548939695a 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