[build] debug: stop defaulting to static analyzer, use -O1, and add hardening flags

This commit is contained in:
Dane Springmeyer
2014-05-29 15:07:14 -07:00
parent 33fba07d5e
commit 5e429f706c

View File

@@ -17,13 +17,11 @@
'cflags': [ '-g', '-O0' ],
'defines': [ 'DEBUG' ],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0',
'GCC_OPTIMIZATION_LEVEL': '1',
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
'DEAD_CODE_STRIPPING': 'NO',
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO',
'RUN_CLANG_STATIC_ANALYZER':'YES',
'CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY': 'YES',
'CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER': 'YES'
'OTHER_CPLUSPLUSFLAGS': [ '-fno-omit-frame-pointer','-fwrapv', '-fstack-protector-all', '-fno-common']
}
},
'Release': {