diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-01 11:05:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 11:05:08 +0200 |
commit | 56b137afb79017d520278613be39202145fc6798 (patch) | |
tree | d7949436e5035a15b1b7cd9da52a1a2ae0720162 | |
parent | 536f6a1472b27aa88b5226404fdb30898cc98576 (diff) | |
parent | c191cfbddfa2f26b22f8c3edbc529342cd2fe2e2 (diff) |
Merge pull request #51136 from akien-mga/scons-4.2.0
Windows: Fix build with SCons 4.2.0
-rw-r--r-- | platform/windows/detect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index a94f38583c..287ece1d29 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -152,7 +152,7 @@ def setup_msvc_auto(env): env["TARGET_ARCH"] = None if env["bits"] != "default": 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.Tool("msvc") env.Tool("mssdk") # we want the MS SDK |