-
Notifications
You must be signed in to change notification settings - Fork 3
/
binding.gyp
42 lines (42 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
42
{
"targets": [
{
"target_name": "bswap",
"sources": [ "src/bswap.cc" ],
"cflags":[
"-fvisibility=hidden",
"-falign-loops=32", # See readme; significant improvement for some cases
"-Wno-unused-function", # CPU feature detection only used on Win
"-Wno-unused-const-variable" # cpuid regs
],
"msvs_settings": {
"VCCLCompilerTool": {
"EnableEnhancedInstructionSet": 3 # /arch:AVX
# 0-not set, 1-sse, 2-sse2, 3-avx, 4-ia32, 5-avx2
}
},
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS": [
"-fvisibility=hidden",
"-Wno-unused-function", # CPU feature detection only used on Win
"-Wno-unused-const-variable"
],
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES", # -fvisibility=hidden
}
},
"conditions": [
['target_arch != "arm64"', {
"cflags": [
"-march=native"
],
"xcode_settings" : {
"OTHER_CPLUSPLUSFLAGS": [
"-march=native"
]
}
}]
]
}
]
}