Browse Source

wscript: fix MSVC_TARGETS defined after XP compatibility check was made (thus fixing IndexOutOfRange error)

fix-cwd-path
Alibek Omarov 2 years ago
parent
commit
036db21bc1
  1. 3
      wscript

3
wscript

@ -36,6 +36,7 @@ def options(opt):
def configure(conf): def configure(conf):
conf.load('fwgslib reconfigure compiler_optimizations') conf.load('fwgslib reconfigure compiler_optimizations')
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
# Force XP compatibility, all build targets should add subsystem=bld.env.MSVC_SUBSYSTEM # Force XP compatibility, all build targets should add subsystem=bld.env.MSVC_SUBSYSTEM
if conf.env.MSVC_TARGETS[0] == 'x86': if conf.env.MSVC_TARGETS[0] == 'x86':
@ -43,8 +44,6 @@ def configure(conf):
else: else:
conf.env.MSVC_SUBSYSTEM = 'WINDOWS' conf.env.MSVC_SUBSYSTEM = 'WINDOWS'
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
# Load compilers early # Load compilers early
conf.load('xcompile compiler_c compiler_cxx') conf.load('xcompile compiler_c compiler_cxx')

Loading…
Cancel
Save