Skip to content

Commit

Permalink
copy except.gypi from node-addon-api (#15)
Browse files Browse the repository at this point in the history
until a solution for nodejs/node-addon-api#1379 is found
  • Loading branch information
mmomtchev authored Sep 14, 2023
1 parent e4aaabe commit 28ed339
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
4 changes: 0 additions & 4 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
'-Wno-deprecated-copy'
],
'msvs_settings': {
'VCCLCompilerTool': {
# PREfast requires too much memory for Github Actions
'EnablePREfast': 'false'
},
'VCLinkerTool': {
'AdditionalLibraryDirectories': '<(module_root_dir)/deps/ImageMagick-Windows/VisualMagick/lib'
}
Expand Down
25 changes: 25 additions & 0 deletions except.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
'defines': [ 'NAPI_CPP_EXCEPTIONS' ],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
["OS=='win'", {
"defines": [
"_HAS_EXCEPTIONS=1"
],
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1,
'EnablePREfast': 'true',
},
},
}],
["OS=='mac'", {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
},
}],
],
}

0 comments on commit 28ed339

Please sign in to comment.