Skip to content

Commit

Permalink
remove NAPI_EXPERIMENTAL due to nodejs/node#52240
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed May 13, 2024
1 parent 6ce98c6 commit fae10b9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
'<!@(node -p "require(\'node-addon-api\').include")'
],
'defines' : [
'NAPI_EXPERIMENTAL',
'NAPI_VERSION=<(napi_build_version)'
],
'conditions' : [
Expand All @@ -31,22 +30,22 @@
[ 'target_arch=="arm64"', {
'include_dirs': [
'/opt/homebrew/include'
],
],
'libraries' : [
'-L/opt/homebrew/lib',
'-lodbc'
],
],
}], ['target_arch=="x64"', {
'include_dirs': [
'/usr/local/include',
],
],
'libraries' : [
'-L/usr/local/lib',
'-lodbc'
],
}],
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NAPI_EXPERIMENTAL' ]
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}],
[ 'OS == "freebsd"', {
'include_dirs': [
Expand All @@ -56,7 +55,7 @@
'-L/usr/local/lib',
'-lodbc'
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NAPI_EXPERIMENTAL' ]
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}],
[ 'OS=="win"', {
'sources' : [
Expand All @@ -66,7 +65,7 @@
'libraries' : [
'-lodbccp32.lib'
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NAPI_EXPERIMENTAL', 'UNICODE' ]
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'UNICODE' ]
}],
[ 'OS=="aix"', {
'variables': {
Expand Down

0 comments on commit fae10b9

Please sign in to comment.