Skip to content

Commit cac1381

Browse files
committed
Merge branch 'master' into pr/391
2 parents ce4be61 + 4a9ce15 commit cac1381

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

binding.gyp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
'configurations': {
8787
'Debug': {
8888
'defines': ['NAPI_CPP_EXCEPTIONS', 'DEBUG', '_DEBUG'],
89+
'cflags_cc!': [
90+
"-fno-exceptions",
91+
],
92+
"cflags_cc": [
93+
"-fexceptions"
94+
],
8995
'conditions': [
9096
['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
9197
'cflags_cc!': [
@@ -161,7 +167,13 @@
161167

162168
'Release': {
163169
'defines': [
164-
'NAPI_DISABLE_CPP_EXCEPTIONS',
170+
'NAPI_CPP_EXCEPTIONS',
171+
],
172+
'cflags_cc!': [
173+
"-fno-exceptions",
174+
],
175+
"cflags_cc": [
176+
"-fexceptions",
165177
],
166178
'conditions': [
167179
['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
@@ -200,6 +212,7 @@
200212
'RuntimeLibrary': 2,
201213
'AdditionalOptions': [
202214
'-std:c++17',
215+
'/EHsc'
203216
],
204217
},
205218
'VCLinkerTool': {

0 commit comments

Comments
 (0)