Skip to content

Commit b92b391

Browse files
committed
SCons: Disable misbehaving MSVC incremental linking
Fixes godotengine#77968. (cherry picked from commit bc1aef8)
1 parent d0d2680 commit b92b391

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform/windows/detect.py

+3
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ def configure_msvc(env, manual_msvc_config):
214214
else:
215215
env.AppendUnique(CCFLAGS=["/MD"])
216216

217+
# MSVC incremental linking is broken and _increases_ link time (GH-77968).
218+
env.Append(LINKFLAGS=["/INCREMENTAL:NO"])
219+
217220
env.AppendUnique(CCFLAGS=["/Gd", "/GR", "/nologo"])
218221
env.AppendUnique(CCFLAGS=["/utf-8"]) # Force to use Unicode encoding.
219222
env.AppendUnique(CXXFLAGS=["/TP"]) # assume all sources are C++

0 commit comments

Comments
 (0)