Skip to content

Commit

Permalink
🚑 Fix c++ on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 5, 2024
1 parent 1136719 commit ef7d035
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
"binding.cc",
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
# gyp scan header files in macos
"<!@(node -p \"require('node-addon-api').include\")",
# https://github.com/nodejs/gyp-next/issues/273
"<!@(pkg-config --variable=includedir rime)",
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS",
"NODE_ADDON_API_DISABLE_DEPRECATED",
],
"cflags": [
"<!@(pkg-config --cflags rime)",
],
"ldflags": [
"<!@(pkg-config --libs rime)",
],
Expand Down

0 comments on commit ef7d035

Please sign in to comment.