Windows: Fix build with SCons 4.2.0

(cherry picked from commit c191cfbddf)
This commit is contained in:
Rémi Verschelde 2021-08-01 10:08:20 +02:00
parent f18a8d3ffc
commit e16f264a7e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,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