diff --git a/common.gypi b/common.gypi index f8cc82ce0d6c..7072a83aab33 100644 --- a/common.gypi +++ b/common.gypi @@ -105,7 +105,6 @@ 'EnableFunctionLevelLinking': 'true', 'EnableIntrinsicFunctions': 'true', 'RuntimeTypeInfo': 'false', - 'ExceptionHandling': '0', 'AdditionalOptions': [ '/MP', # compile across multiple CPUs ], @@ -134,7 +133,7 @@ 'DebugInformationFormat': 3, # Generate a PDB 'WarningLevel': 3, 'BufferSecurityCheck': 'true', - 'ExceptionHandling': 1, # /EHsc + 'ExceptionHandling': 0, # /EHsc 'SuppressStartupBanner': 'true', 'WarnAsError': 'false', }, @@ -180,6 +179,8 @@ # ... or that C implementations shouldn't use # POSIX names '_CRT_NONSTDC_NO_DEPRECATE', + # Make sure the STL doesn't try to use exceptions + '_HAS_EXCEPTIONS=0', 'BUILDING_V8_SHARED=1', 'BUILDING_UV_SHARED=1', ],