소스 검색

SCons: Disable misbehaving MSVC incremental linking

Fixes #77968.
Rémi Verschelde 2 년 전
부모
커밋
bc1aef88ee
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      platform/windows/detect.py

+ 3 - 0
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