Fixed Release and Release_Debug build on windows.
This commit is contained in:
parent
2cc3145669
commit
ae739b9946
@ -948,11 +948,12 @@ elif env['COMPILER_FAMILY'] == 'cl':
|
|||||||
env.Append(DEPS_CXXFLAGS = ['/MDd', '/Zi', '/D_DEBUG', '/D_ITERATOR_DEBUG_LEVEL=2'])
|
env.Append(DEPS_CXXFLAGS = ['/MDd', '/Zi', '/D_DEBUG', '/D_ITERATOR_DEBUG_LEVEL=2'])
|
||||||
env.Append(DEPS_LINKFLAGS = ['/DEBUG'])
|
env.Append(DEPS_LINKFLAGS = ['/DEBUG'])
|
||||||
elif build_type == 'release_debug' or build_type == 'profile':
|
elif build_type == 'release_debug' or build_type == 'profile':
|
||||||
env.Append(CCFLAGS = ['/O2', '/Zi'], LINKFLAGS = ' /DEBUG')
|
env.Append(CCFLAGS = ['/O2', '/MD', '/Zi'], LINKFLAGS = ' /DEBUG')
|
||||||
env.Append(DEPS_CXXFLAGS = ['/Zi'])
|
env.Append(DEPS_CXXFLAGS = ['/Zi', '/MD'])
|
||||||
env.Append(DEPS_LINKFLAGS = ['/DEBUG'])
|
env.Append(DEPS_LINKFLAGS = ['/DEBUG'])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS = ['/O2'])
|
env.Append(CCFLAGS = ['/O2', '/MD'])
|
||||||
|
env.Append(DEPS_CXXFLAGS = ['/MD'])
|
||||||
|
|
||||||
if env['ENABLE_ASAN']:
|
if env['ENABLE_ASAN']:
|
||||||
env.Append(CCFLAGS = ['/fsanitize=address'])
|
env.Append(CCFLAGS = ['/fsanitize=address'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user