Browse Source

scripts: compiler_optimizations: disable clang thread-safe statics

pull/2/head
Alibek Omarov 3 years ago
parent
commit
29bc0392ee
  1. 2
      scripts/waifulib/compiler_optimizations.py

2
scripts/waifulib/compiler_optimizations.py

@ -51,7 +51,7 @@ CFLAGS = { @@ -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']
},

Loading…
Cancel
Save