wscript: disallow int-conversion
This commit is contained in:
parent
83953c7fb3
commit
8d0ea1d03e
1 changed files with 18 additions and 6 deletions
16
wscript
16
wscript
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue