diff --git a/deps/v8/gypfiles/v8.gyp b/deps/v8/gypfiles/v8.gyp index 450cc9084ca..a890f780aaa 100644 --- a/deps/v8/gypfiles/v8.gyp +++ b/deps/v8/gypfiles/v8.gyp @@ -2526,10 +2526,33 @@ 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti }, 'defines': ['ANTLR4CPP_STATIC'], + 'defines!': [ + '_HAS_EXCEPTIONS=0', + 'BUILDING_V8_SHARED=1', + ], 'include_dirs': [ '../third_party/antlr4/runtime/Cpp/runtime/src', '../src/torque', ], + # This is defined trough `configurations` for GYP+ninja compatibility + 'configurations': { + 'Debug': { + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeTypeInfo': 'true', + 'ExceptionHandling': 1, + }, + } + }, + 'Release': { + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeTypeInfo': 'true', + 'ExceptionHandling': 1, + }, + } + }, + }, 'sources': [ '../src/torque/TorqueBaseVisitor.cpp', '../src/torque/TorqueBaseVisitor.h',