Explorar el Código

Merge pull request #51136 from akien-mga/scons-4.2.0

Windows: Fix build with SCons 4.2.0
Rémi Verschelde hace 4 años
padre
commit
56b137afb7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -152,7 +152,7 @@ def setup_msvc_auto(env):
     env["TARGET_ARCH"] = None
     env["TARGET_ARCH"] = None
     if env["bits"] != "default":
     if env["bits"] != "default":
         env["TARGET_ARCH"] = {"32": "x86", "64": "x86_64"}[env["bits"]]
         env["TARGET_ARCH"] = {"32": "x86", "64": "x86_64"}[env["bits"]]
-    if env.has_key("msvc_version"):
+    if "msvc_version" in env:
         env["MSVC_VERSION"] = env["msvc_version"]
         env["MSVC_VERSION"] = env["msvc_version"]
     env.Tool("msvc")
     env.Tool("msvc")
     env.Tool("mssdk")  # we want the MS SDK
     env.Tool("mssdk")  # we want the MS SDK