MinGW: Use thin archives to reduce disk space

This commit is contained in:
Alvin Wong 2024-07-26 02:03:16 +08:00
parent b5258b42c0
commit 2d300a0bdc

View File

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