We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9d528 commit 8f120b0Copy full SHA for 8f120b0
doc/setup.md
@@ -58,12 +58,14 @@ To use **Node-API** in a native module:
58
following settings in the `binding.gyp` file:
59
60
```gyp
61
- ['OS=="mac"', {
62
- 'cflags+': ['-fvisibility=hidden'],
63
- 'xcode_settings': {
64
- 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
65
- }
66
- }]
+ 'conditions': [
+ ['OS=="mac"', {
+ 'cflags+': ['-fvisibility=hidden'],
+ 'xcode_settings': {
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
+ }
67
+ }]
68
+ ]
69
```
70
71
5. Include `napi.h` in the native module code.
0 commit comments