Skip to content

Commit

Permalink
fix binding.gyp on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Nov 18, 2024
1 parent 17390a0 commit b494c71
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS"
"NAPI_CPP_EXCEPTIONS"
],
"conditions": [
[
Expand Down Expand Up @@ -78,6 +78,20 @@
"sources": [
"src/darwin/fs_meta.cpp"
],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.15"
},
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"cflags": [
"-fexceptions",
"-fPIC"
],
"cflags_cc": [
"-fexceptions"
],
"link_settings": {
"libraries": [
"DiskArbitration.framework",
Expand All @@ -90,4 +104,4 @@
]
}
]
}
}

0 comments on commit b494c71

Please sign in to comment.