From a779cb9b76a10e8f98df04323de7395e7dacb798 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 24 Jul 2016 15:24:00 -0400 Subject: [PATCH] Enable 64-bit defines for WIndows x86_64 builds. --- AMBuildScript | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 5ef6c49..5a1d5bc 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -304,13 +304,16 @@ class MMSConfig(object): compiler.defines.remove('_vsnprintf=vsnprintf') 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: compiler.defines += ['COMPILER_GCC'] - if sdk.name == 'dota' and builder.target.platform in ['linux', 'mac']: - if builder.target.arch == 'x86_64': - compiler.defines += ['X64BITS', 'PLATFORM_64BITS'] + if sdk.name == 'dota' and builder.target.arch == 'x86_64': + compiler.defines += ['X64BITS', 'PLATFORM_64BITS'] if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'dota']: if builder.target.platform in ['linux', 'mac']: