|
|
@ -132,8 +132,20 @@ def configure(conf): |
|
|
|
'common': { |
|
|
|
'common': { |
|
|
|
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP |
|
|
|
# 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-', '/MT'], |
|
|
|
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-', '/MT'], |
|
|
|
'clang': ['-g', '-gdwarf-2', '-Werror=implicit-function-declaration', '-Werror=return-type'], |
|
|
|
'clang': [ |
|
|
|
'gcc': ['-g', '-Werror=implicit-function-declaration', '-fdiagnostics-color=always', '-Werror=return-type'] |
|
|
|
'-g', |
|
|
|
|
|
|
|
'-gdwarf-2', |
|
|
|
|
|
|
|
'-Werror=implicit-function-declaration', |
|
|
|
|
|
|
|
'-Werror=return-type', |
|
|
|
|
|
|
|
'-Werror=int-conversion' |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
'gcc': [ |
|
|
|
|
|
|
|
'-g', |
|
|
|
|
|
|
|
'-fdiagnostics-color=always', |
|
|
|
|
|
|
|
'-Werror=implicit-function-declaration', |
|
|
|
|
|
|
|
'-Werror=return-type', |
|
|
|
|
|
|
|
'-Werror=int-conversion' |
|
|
|
|
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
'fast': { |
|
|
|
'fast': { |
|
|
|
'msvc': ['/O2', '/Oy'], #todo: check /GL /LTCG |
|
|
|
'msvc': ['/O2', '/Oy'], #todo: check /GL /LTCG |
|
|
|