build: make debug build on os x compile at -O0
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 2 Nov 2012 14:56:47 +0000 (15:56 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 2 Nov 2012 14:58:21 +0000 (15:58 +0100)
Set GCC_OPTIMIZATION_LEVEL explicitly, otherwise GYP defaults to -Os.

common.gypi

index f198d33..ce556fb 100644 (file)
@@ -45,6 +45,9 @@
             'LinkIncremental': 2, # enable incremental linking
           },
         },
+        'xcode_settings': {
+          'GCC_OPTIMIZATION_LEVEL': '0', # stop gyp from defaulting to -Os
+        },
       },
       'Release': {
         'conditions': [