diff --git a/node.gypi b/node.gypi index d4b3c9c8d7dd1f..fcf0f53b1cb4be 100644 --- a/node.gypi +++ b/node.gypi @@ -35,6 +35,15 @@ '-Werror=undefined-inline', ], }, + + # Relevant only for x86. + # Refs: https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers + 'msvs_settings': { + 'VCLinkerTool': { + 'ImageHasSafeExceptionHandlers': 'false', + }, + }, + 'conditions': [ ['clang==1', { 'cflags': [ '-Werror=undefined-inline', ]