Skip to content

Commit f1ce2a5

Browse files
committed
Node.js: provide reasonable default paths for macOS.
1 parent 43f140d commit f1ce2a5

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

src/nodejs/unit-http/binding_pub.gyp

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,28 @@
77
['OS=="mac"', {
88
'xcode_settings': {
99
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
10-
}
11-
}]
12-
],
10+
},
11+
'conditions': [
12+
[ '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+
'include_dirs': [
23+
'/usr/local/include',
24+
],
25+
'libraries' : [
26+
'-L/usr/local/lib',
27+
'-lunit'
28+
],
29+
}]
30+
]}
31+
]],
1332
'sources': ["unit.cpp", "addon.cpp"],
1433
'libraries': ["-lunit"]
1534
}]

0 commit comments

Comments
 (0)