-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Disable SAFESEH in node.gyp when building with vs 2012 #4242
Comments
We're building it with vs2010, so I don't have a copy vs2012. How does it fail? Can you paste the build output? |
|
I am similarly getting this, but not only on debug but also release snippet
full log available http://jenkins.nodejs.org/job/nodejs-oneoff/35/consoleText |
Does this patch fix it? diff --git a/common.gypi b/common.gypi
index 9ecfc4d..72138f3 100644
--- a/common.gypi
+++ b/common.gypi
@@ -121,6 +121,7 @@
'WarningLevel': 3,
'BufferSecurityCheck': 'true',
'ExceptionHandling': 1, # /EHsc
+ 'ImageHasSafeExceptionHandlers': 0, # /SAFESEH:NO
'SuppressStartupBanner': 'true',
'WarnAsError': 'false',
}, (If not, @piscisaureus or @sblom should look at this.) |
Yes, that does the job :) |
@bnoordhuis Just tried building v0.10.1 and safeseh issue is back again.
|
/cc @piscisaureus |
@peters Can you try to build with a fresh checkout, or run |
I'm experiencing the same issue using node v0.10.18 and node-gyp v0.10.10. Does anyone know of a workaround? |
@piscisaureus I think I may know what the problem is here -
|
http://msdn.microsoft.com/en-us/library/9a89h429(v=vs.80).aspx
Unable to build the Debug release without disabling SAFESEH.
I'm not a windows guy, so this might be a bad thing for all i know, but if not it could be added to gyp:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.vcprojectengine.vclibrariantool.additionaloptions(v=vs.80).aspx
The text was updated successfully, but these errors were encountered: