mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 09:57:21 +01:00
Make it possible to complie 64-bit binary on windows
The change is to supply `x64` to MSVC_TARGETS if `-8` is specified. Note that it will set DEST_CPU to `amd64` instead of expected `x86_64` on Windows. This is known to break things for xash3d-fwgs repo. But for this one it seems just fine? I haven't investigated it further.
This commit is contained in:
parent
c8ad4a45e5
commit
715620135a
2
wscript
2
wscript
@ -87,7 +87,7 @@ def configure(conf):
|
||||
# subsystem=bld.env.MSVC_SUBSYSTEM
|
||||
# TODO: wrapper around bld.stlib, bld.shlib and so on?
|
||||
conf.env.MSVC_SUBSYSTEM = 'WINDOWS,5.01'
|
||||
conf.env.MSVC_TARGETS = ['x86'] # explicitly request x86 target for MSVC
|
||||
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
|
||||
if sys.platform == 'win32':
|
||||
conf.load('msvc msdev')
|
||||
conf.load('xcompile compiler_c compiler_cxx strip_on_install')
|
||||
|
Loading…
Reference in New Issue
Block a user