Skip to content

Commit

Permalink
binding.gyp: Fix warnings during compiling
Browse files Browse the repository at this point in the history
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: nodejs/node-gyp#26 (comment)
  • Loading branch information
TheThing committed Jul 25, 2015
1 parent 4b3da07 commit c61c2ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
'VCCLCompilerTool': {
'ExceptionHandling': 1 # /EHsc
}
}
},
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
}
}
}
},
}]
}

0 comments on commit c61c2ac

Please sign in to comment.