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:
parent
4104721ce2
commit
a779cb9b76
@ -304,13 +304,16 @@ 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']:
|
||||||
if builder.target.platform in ['linux', 'mac']:
|
if builder.target.platform in ['linux', 'mac']:
|
||||||
|
Loading…
Reference in New Issue
Block a user