浏览代码

MinGW: Use thin archives to reduce disk space

Alvin Wong 1 年之前
父节点
当前提交
2d300a0bdc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      platform/windows/detect.py

+ 2 - 0
platform/windows/detect.py

@@ -762,6 +762,8 @@ def configure_mingw(env: "SConsEnvironment"):
     if env["use_llvm"] and os.name == "nt" and methods._colorize:
     if env["use_llvm"] and os.name == "nt" and methods._colorize:
         env.Append(CCFLAGS=["$(-fansi-escape-codes$)", "$(-fcolor-diagnostics$)"])
         env.Append(CCFLAGS=["$(-fansi-escape-codes$)", "$(-fcolor-diagnostics$)"])
 
 
+    env.Append(ARFLAGS=["--thin"])
+
     env.Append(CPPDEFINES=["WINDOWS_ENABLED", "WASAPI_ENABLED", "WINMIDI_ENABLED"])
     env.Append(CPPDEFINES=["WINDOWS_ENABLED", "WASAPI_ENABLED", "WINMIDI_ENABLED"])
     env.Append(
     env.Append(
         CPPDEFINES=[
         CPPDEFINES=[