From fecaa7b75a776967ac5315733c73769d2095719c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 1 Jul 2013 20:52:48 +0800 Subject: [PATCH] Should enable C++ exceptions for all targets on Windows. It's a requirement for using standard library of VS. --- atom.gyp | 8 -------- common.gypi | 13 +++++++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/atom.gyp b/atom.gyp index 488f6b74..1a87591a 100644 --- a/atom.gyp +++ b/atom.gyp @@ -252,14 +252,6 @@ '.', 'vendor', ], - 'msvs_settings': { - 'VCCLCompilerTool': { - # Programs that use the Standard C++ library must be compiled with C++ - # exception handling enabled. - # http://support.microsoft.com/kb/154419 - 'ExceptionHandling': 1, - }, - }, }, { 'target_name': 'generated_sources', diff --git a/common.gypi b/common.gypi index 2ca29541..e559dc0b 100644 --- a/common.gypi +++ b/common.gypi @@ -77,5 +77,18 @@ }, }, }], # clang==1 + # Windows specific settings. + ['OS=="win"', { + 'target_defaults': { + 'msvs_settings': { + 'VCCLCompilerTool': { + # Programs that use the Standard C++ library must be compiled with C++ + # exception handling enabled. + # http://support.microsoft.com/kb/154419 + 'ExceptionHandling': 1, + }, + }, + }, + }], # OS=="win" ], } -- 2.43.0