Skip to content

Commit 3263a1e

Browse files
committed
chore: enable exceptions on debug builds
1 parent 0e27d31 commit 3263a1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

binding.gyp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
'defines': [ 'DEBUG', 'NAPI_CPP_EXCEPTIONS', 'ENABLE_DEBUG' ],
4545
'cflags': [ '-g', '-O0' ],
4646
"cflags_cc": [
47+
'-fexceptions', # enable exceptions
48+
4749
# C++ standard
4850
"-std=c++2a",
4951
# Clang warnings
@@ -71,7 +73,7 @@
7173
], # GCC/CLANG
7274
"msvs_settings": {
7375
"VCCLCompilerTool": {
74-
'ExceptionHandling': "a", # /EHsc
76+
'ExceptionHandling': 2, # /EHsc
7577
'BasicRuntimeChecks': 3, # /RTC1
7678
'MinimalRebuild': 'false',
7779
'OmitFramePointers': 'false',

0 commit comments

Comments
 (0)