From 8b1f621e3a7c0a2fd63d48d83aa18d24b4f39fd7 Mon Sep 17 00:00:00 2001 From: "tina.legrand@webrtc.org" Date: Fri, 28 Oct 2011 08:57:34 +0000 Subject: [PATCH] Updated gypi for tests to work on osx. Review URL: http://webrtc-codereview.appspot.com/250002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@830 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../audio_coding/main/source/audio_coding_module.gypi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/audio_coding/main/source/audio_coding_module.gypi b/src/modules/audio_coding/main/source/audio_coding_module.gypi index 42d26f1c5..9b8a6225b 100644 --- a/src/modules/audio_coding/main/source/audio_coding_module.gypi +++ b/src/modules/audio_coding/main/source/audio_coding_module.gypi @@ -122,11 +122,16 @@ '../test/utility.cpp', ], 'conditions': [ - ['OS=="linux"', { + ['OS=="linux" or OS=="mac"', { 'cflags': [ '-fexceptions', # enable exceptions ], }], + ['OS=="mac"', { + 'xcode_settings': { + 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', # -fexceptions + } + }], ], }, ],