1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

Enable 64-bit defines for WIndows x86_64 builds.

This commit is contained in:
Nicholas Hastings 2016-07-24 15:24:00 -04:00
parent 4104721ce2
commit a779cb9b76

View File

@ -304,12 +304,15 @@ class MMSConfig(object):
compiler.defines.remove('_vsnprintf=vsnprintf') compiler.defines.remove('_vsnprintf=vsnprintf')
if compiler.family == 'msvc': if compiler.family == 'msvc':
compiler.defines += ['COMPILER_MSVC', 'COMPILER_MSVC32'] compiler.defines += ['COMPILER_MSVC']
if builder.target.arch == 'x86':
compiler.defines += ['COMPILER_MSVC32']
elif builder.target.arch == 'x86_64':
compiler.defines += ['COMPILER_MSVC64']
else: else:
compiler.defines += ['COMPILER_GCC'] compiler.defines += ['COMPILER_GCC']
if sdk.name == 'dota' and builder.target.platform in ['linux', 'mac']: if sdk.name == 'dota' and builder.target.arch == 'x86_64':
if builder.target.arch == 'x86_64':
compiler.defines += ['X64BITS', 'PLATFORM_64BITS'] compiler.defines += ['X64BITS', 'PLATFORM_64BITS']
if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'dota']: if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'dota']: