AMBuild: Add missing COMPILER_ defines for MSVC

This commit is contained in:
Nick Hastings 2024-04-20 13:07:45 -04:00
parent 9e5b0edaa2
commit 571edba354

View File

@ -100,12 +100,17 @@ class SDKConfig(object):
return
def configure_msvc(self, cxx):
cxx.defines += ['COMPILER_MSVC']
if cxx.target.arch == 'x86':
cxx.defines += ['COMPILER_MSVC32']
elif cxx.target.arch == 'x86_64':
cxx.defines += ['COMPILER_MSVC64']
cxx.cxxflags += [
'/std:c++17',
'/WX'
]
if builder.options.opt == '1':
cxx.cflags += ['/Ox', '/Zo']
cxx.linkflags += ['/OPT:ICF', '/OPT:REF']