From 3dcd6cb80b8958133e7dfc37aa527aeb31e1abe0 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 18 Aug 2024 14:13:51 +0300 Subject: [PATCH] wscript: set crosscompiling msvc toolchain on 64-bit systems --- wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 3cc7251a..ddaf211a 100644 --- a/wscript +++ b/wscript @@ -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')