Browse Source

wscript: disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP

pull/2/head
Alibek Omarov 5 years ago committed by GitHub
parent
commit
ba11b849ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      wscript

3
wscript

@ -130,7 +130,8 @@ def configure(conf): @@ -130,7 +130,8 @@ def configure(conf):
compiler_c_cxx_flags = {
'common': {
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS'],
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'],
'clang': ['-g', '-gdwarf-2', '-Werror=implicit-function-declaration', '-Werror=return-type'],
'gcc': ['-g', '-Werror=implicit-function-declaration', '-fdiagnostics-color=always', '-Werror=return-type']
},

Loading…
Cancel
Save