mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-07 10:38:23 +00:00
AMBuild: Add missing COMPILER_ defines for MSVC
This commit is contained in:
parent
9e5b0edaa2
commit
571edba354
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user