SCons: Ensure MinGW as fallback if missing MSVC

This commit is contained in:
Thaddeus Crews 2025-03-28 16:46:56 -05:00
parent 7598b08ec2
commit 7a28334596
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC

View File

@ -148,7 +148,9 @@ def detect_build_env_arch():
def get_tools(env: "SConsEnvironment"):
if os.name != "nt" or env.get("use_mingw"):
from SCons.Tool.MSCommon import msvc_exists
if os.name != "nt" or env.get("use_mingw") or not msvc_exists():
return ["mingw"]
else:
msvc_arch_aliases = {"x86_32": "x86", "arm32": "arm"}