wscript: added /Zc:__cplusplus compiler flag for MSVC

This commit is contained in:
SNMetamorph 2022-08-01 04:11:13 +04:00 committed by Alibek Omarov
parent 55a29e6e6b
commit b26cd6cc94
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ LINKFLAGS = {
CFLAGS = {
'common': {
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
'msvc': ['/D_USING_V110_SDK71_', '/FS', '/Zc:threadSafeInit-', '/MT', '/MP'],
'msvc': ['/D_USING_V110_SDK71_', '/FS', '/Zc:threadSafeInit-', '/MT', '/MP', '/Zc:__cplusplus'],
'clang': ['-g', '-gdwarf-2', '-fvisibility=hidden', '-fno-threadsafe-statics'],
'gcc': ['-g', '-fvisibility=hidden'],
'owcc': ['-fno-short-enum', '-ffloat-store', '-g3']