From a6fef475ceb3e7e001a0dc659c028ad947a50886 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 2 Nov 2012 15:56:47 +0100 Subject: [PATCH] build: make debug build on os x compile at -O0 Set GCC_OPTIMIZATION_LEVEL explicitly, otherwise GYP defaults to -Os. --- common.gypi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.gypi b/common.gypi index f198d331296..ce556fb43ab 100644 --- a/common.gypi +++ b/common.gypi @@ -45,6 +45,9 @@ 'LinkIncremental': 2, # enable incremental linking }, }, + 'xcode_settings': { + 'GCC_OPTIMIZATION_LEVEL': '0', # stop gyp from defaulting to -Os + }, }, 'Release': { 'conditions': [