Skip to content

Commit 83bc414

Browse files
committed
fix: exclude -fno-exceptions
1 parent e0b5423 commit 83bc414

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

binding.gyp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
'configurations': {
8787
'Debug': {
8888
'defines': ['NAPI_CPP_EXCEPTIONS', 'DEBUG', '_DEBUG'],
89+
'cflags_cc!': [
90+
"-fno-exceptions",
91+
],
8992
"cflags_cc": [
9093
"-fexceptions"
9194
],
@@ -166,8 +169,11 @@
166169
'defines': [
167170
'NAPI_CPP_EXCEPTIONS',
168171
],
172+
'cflags_cc!': [
173+
"-fno-exceptions",
174+
],
169175
"cflags_cc": [
170-
"-fexceptions"
176+
"-fexceptions",
171177
],
172178
'conditions': [
173179
['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {

0 commit comments

Comments
 (0)