mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
wscript: fix MSVC_TARGETS defined after XP compatibility check was made (thus fixing IndexOutOfRange error)
This commit is contained in:
parent
399f7213e9
commit
036db21bc1
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…
Reference in New Issue
Block a user