From d375327d20ca61d3c7da75097beca1d0d5f5f8cf Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sat, 25 Jul 2015 07:44:06 +0000 Subject: [PATCH] binding.gyp: Fix warnings during compiling Fixes the following warnings while compiling: ``` D:\Forritun\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (compiling source file ..\src\common.cc) [D:\sharp\build\sharp.vcxproj] D:\Forritun\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (compiling source file ..\src\operations.cc) [D:\sharp\build\sharp.vcxproj] ...etc... ``` Solution taken from here: https://github.com/TooTallNate/node-gyp/issues/26#issuecomment-7296389 --- binding.gyp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index beb99237..14de5318 100755 --- a/binding.gyp +++ b/binding.gyp @@ -74,6 +74,15 @@ 'VCCLCompilerTool': { 'ExceptionHandling': 1 # /EHsc } - } + }, + 'configurations': { + 'Release': { + 'msvs_settings': { + 'VCCLCompilerTool': { + 'ExceptionHandling': 1, + } + } + } + }, }] }