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,11 +100,16 @@ class SDKConfig(object):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def configure_msvc(self, cxx):
|
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 += [
|
cxx.cxxflags += [
|
||||||
'/std:c++17',
|
'/std:c++17',
|
||||||
'/WX'
|
'/WX'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
if builder.options.opt == '1':
|
if builder.options.opt == '1':
|
||||||
cxx.cflags += ['/Ox', '/Zo']
|
cxx.cflags += ['/Ox', '/Zo']
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user