From d87904286024f5ceb6a2d0d5f17e919c775830a0 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 28 Feb 2013 16:35:17 +0100 Subject: [PATCH] build, windows: disable SEH Turn off safe exception handlers, they're incompatible with how openssl is compiled / linked under MSVS 2012. Addresses the following build error: openssl.lib(x86cpuid.obj) : error LNK2026: module unsafe for SAFESEH image. [g:\jenkins\workspace\nodejs-oneoff\node.vcxproj] openssl.lib(x86.obj) : error LNK2026: module unsafe for SAFESEH image. [g:\jenkins\workspace\nodejs-oneoff\node.vcxproj] # etc. etc. g:\jenkins\workspace\nodejs-oneoff\Release\node.exe : fatal error LNK1281: Unable to generate SAFESEH image. [g:\jenkins\workspace\nodejs-oneoff\node.vcxproj] Fixes #4242. --- common.gypi | 1 + 1 file changed, 1 insertion(+) diff --git a/common.gypi b/common.gypi index b26d2f3f1cb..26a276cdcdd 100644 --- a/common.gypi +++ b/common.gypi @@ -117,6 +117,7 @@ 'WarningLevel': 3, 'BufferSecurityCheck': 'true', 'ExceptionHandling': 1, # /EHsc + 'ImageHasSafeExceptionHandlers': 0, # /SAFESEH:NO 'SuppressStartupBanner': 'true', 'WarnAsError': 'false', },