2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-31 13:16:37 +01:00

wscript: set crosscompiling msvc toolchain on 64-bit systems

This commit is contained in:
Alibek Omarov 2024-08-18 14:13:51 +03:00
parent 79e94bf766
commit 3dcd6cb80b

View File

@ -172,7 +172,12 @@ def options(opt):
def configure(conf):
conf.load('fwgslib reconfigure compiler_optimizations')
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
if conf.options.ALLOW64:
conf.env.MSVC_TARGETS = ['x64']
elif sys.maxsize > 2 ** 32:
conf.env.MSVC_TARGETS = ['amd64_x86', 'x86']
else:
conf.env.MSVC_TARGETS = ['x86']
# Load compilers early
conf.load('xshlib xcompile compiler_c compiler_cxx cmake gccdeps')