-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
44 lines (44 loc) · 877 Bytes
/
binding.gyp
File metadata and controls
44 lines (44 loc) · 877 Bytes
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
42
43
44
{
"targets": [
{
"target_name": "readline-pager",
"sources": [ "src/native/pager.native.cc" ],
"cflags_cc": [
"-O3",
"-std=c++23",
"-fno-exceptions",
"-fno-rtti",
"-Wall",
"-Wextra",
"-fPIC",
"-flto",
"-fno-strict-aliasing",
"-fomit-frame-pointer"
],
"ldflags": [
"-flto",
"-Wl,-O3",
"-Wl,--as-needed",
"-Wl,--strip-all"
],
"conditions": [
['target_arch=="x64"', {
"cflags_cc": [
"-mavx2",
"-mbmi",
"-mbmi2",
"-mlzcnt"
]
}],
['target_arch=="arm64"', {
"cflags_cc": [
"-march=armv8-a+simd"
]
}],
['OS=="linux"', {
"libraries": [ "-lrt" ]
}]
]
}
]
}