scripts: compiler_optimizations: disable clang thread-safe statics

This commit is contained in:
Alibek Omarov 2021-12-07 09:03:51 +03:00
parent 054765232e
commit 29bc0392ee
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ 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'],
'clang': ['-g', '-gdwarf-2', '-fvisibility=hidden'],
'clang': ['-g', '-gdwarf-2', '-fvisibility=hidden', '-fno-threadsafe-statics'],
'gcc': ['-g', '-fvisibility=hidden'],
'owcc': ['-fno-short-enum', '-ffloat-store', '-g3']
},