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 43f140d commit f1ce2a5Copy full SHA for f1ce2a5
src/nodejs/unit-http/binding_pub.gyp
@@ -7,9 +7,28 @@
7
['OS=="mac"', {
8
'xcode_settings': {
9
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
10
- }
11
- }]
12
- ],
+ },
+ 'conditions': [
+ [ 'target_arch=="arm64"', {
13
+ 'include_dirs': [
14
+ '/opt/homebrew/include'
15
+ ],
16
+ 'libraries' : [
17
+ '-L/opt/homebrew/lib',
18
+ '-lunit'
19
20
+ }],
21
+ ['target_arch=="x64"', {
22
23
+ '/usr/local/include',
24
25
26
+ '-L/usr/local/lib',
27
28
29
+ }]
30
+ ]}
31
+ ]],
32
'sources': ["unit.cpp", "addon.cpp"],
33
'libraries': ["-lunit"]
34
}]
0 commit comments