wscript: set crosscompiling msvc toolchain on 64-bit systems
This commit is contained in:
parent
79e94bf766
commit
3dcd6cb80b
1 changed files with 6 additions and 1 deletions
7
wscript
7
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')
|
||||
|
|
Loading…
Add table
Reference in a new issue