mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
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
This commit is contained in:
parent
09244192e9
commit
d375327d20
11
binding.gyp
11
binding.gyp
@ -74,6 +74,15 @@
|
||||
'VCCLCompilerTool': {
|
||||
'ExceptionHandling': 1 # /EHsc
|
||||
}
|
||||
}
|
||||
},
|
||||
'configurations': {
|
||||
'Release': {
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'ExceptionHandling': 1,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user