Skip to content

Commit

Permalink
chore: enable exceptions on debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 8, 2020
1 parent 0e27d31 commit 3263a1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
'defines': [ 'DEBUG', 'NAPI_CPP_EXCEPTIONS', 'ENABLE_DEBUG' ],
'cflags': [ '-g', '-O0' ],
"cflags_cc": [
'-fexceptions', # enable exceptions

# C++ standard
"-std=c++2a",
# Clang warnings
Expand Down Expand Up @@ -71,7 +73,7 @@
], # GCC/CLANG
"msvs_settings": {
"VCCLCompilerTool": {
'ExceptionHandling': "a", # /EHsc
'ExceptionHandling': 2, # /EHsc
'BasicRuntimeChecks': 3, # /RTC1
'MinimalRebuild': 'false',
'OmitFramePointers': 'false',
Expand Down

0 comments on commit 3263a1e

Please sign in to comment.