SCons: Disable misbehaving MSVC incremental linking

Fixes #77968.
This commit is contained in:
Rémi Verschelde 2023-08-10 14:04:09 +02:00
parent 013e8e3afb
commit bc1aef88ee
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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