-
Notifications
You must be signed in to change notification settings - Fork 3
/
binding.gyp
41 lines (34 loc) · 1.13 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"targets": [{
"variables": {
# Define `gcc_version` if it's not defined already
# as it is getting used below.
"gcc_version%": "unknown",
},
"target_name": "cares_wrap",
"include_dirs": [
"<!(node -e \"require('nan')\")",
"deps/cares/include",
"deps/cares/src",
"deps/utils"
],
"sources": [
"src/cares_wrap.cc"
],
"dependencies": [ "deps/cares/cares.gyp:cares" ],
# Exclude `-fno-tree-sink` by default as some older compiler versions
# does not support this flag.
# This flag is conditionally getting added again below.
'cflags!': [ '-fno-tree-sink' ],
"conditions": [
["OS!='win'", {
"libraries": [ "-Wl,-rpath,<!(pwd)/build/Release/" ],
}
],
# Conditionally add `-fno-tree-sink` only for supported versions.
['clang == 0 and gcc_version <= 44', {
'cflags': [ '-fno-tree-sink' ], # Work around compiler bug.
}],
]
}]
}