From 105aa295f1fb7243bdd1c0aed4ee801953cf5066 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 23 May 2014 16:51:37 -0700 Subject: [PATCH] gyp: better xcode parameter usage --- common.gypi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common.gypi b/common.gypi index b81a361f5..b1ad46015 100644 --- a/common.gypi +++ b/common.gypi @@ -12,14 +12,20 @@ 'cflags': [ '-g', '-O0' ], 'defines': [ 'DEBUG' ], 'xcode_settings': { - 'OTHER_CPLUSPLUSFLAGS': [ '-Wall', '-Wextra', '-pedantic', '-g', '-O0' ] + 'GCC_OPTIMIZATION_LEVEL': '0', + 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', + 'OTHER_CPLUSPLUSFLAGS': [ '-Wall', '-Wextra', '-pedantic' ] } }, 'Release': { 'cflags': [ '-O3' ], 'defines': [ 'NDEBUG' ], 'xcode_settings': { - 'OTHER_CPLUSPLUSFLAGS': [ '-Wall', '-Wextra', '-pedantic', '-O3' ] + 'GCC_OPTIMIZATION_LEVEL': '3', + 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', + 'DEAD_CODE_STRIPPING': 'YES', + 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', + 'OTHER_CPLUSPLUSFLAGS': [ '-Wall', '-Wextra', '-pedantic' ] } } }