Skip to content

Commit

Permalink
SCons: Disable misbehaving MSVC incremental linking
Browse files Browse the repository at this point in the history
Fixes #77968.
  • Loading branch information
akien-mga committed Aug 10, 2023
1 parent 013e8e3 commit bc1aef8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bc1aef8

Please sign in to comment.