Build with -g, -O0 for specs

This commit is contained in:
Max Brunsfeld 2015-06-15 15:12:53 -07:00
parent 44774119bf
commit 0c4620f3ab
2 changed files with 14 additions and 1 deletions

View file

@ -114,6 +114,9 @@
'cflags_c': [
'-std=c99'
],
'ldflags': [
'-g',
],
'direct_dependent_settings': {
'include_dirs': [
'include'
@ -127,6 +130,11 @@
'configurations': {
'Debug': {
'cflags': [ '-g' ],
'ldflags': [ '-g' ],
'xcode_settings': {
'OTHER_LDFLAGS': ['-g'],
'GCC_OPTIMIZATION_LEVEL': '0',
},
},
'Release': {
'cflags': [ '-O2', '-fno-strict-aliasing' ],

View file

@ -59,11 +59,14 @@
'-Wno-unknown-pragmas',
],
'cflags_c': [
'-std=c99'
'-std=c99',
],
'cflags_cc': [
'-std=c++0x',
],
'ldflags': [
'-g',
],
'variables': {
'USE_LIBPROFILER%': 'true',
@ -76,6 +79,8 @@
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'OTHER_LDFLAGS': ['-g'],
'GCC_OPTIMIZATION_LEVEL': '0',
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'WARNING_CFLAGS': [
'-Wall',