-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbinding.gyp
31 lines (31 loc) · 919 Bytes
/
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
{
"targets": [
{
"target_name": "bswap",
"sources": [ "src/bswap.cc" ],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"cflags":[
"-march=native",
"-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
"-Wno-cast-function-type" # https://github.com/nodejs/nan/issues/807
],
"msvs_settings": {
"VCCLCompilerTool": {
"EnableEnhancedInstructionSet": 3 # /arch:AVX
# 0-not set, 1-sse, 2-sse2, 3-avx, 4-ia32, 5-avx2
}
},
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS": [
"-march=native",
"-Wno-unused-function", # CPU feature detection only used on Win
"-Wno-unused-const-variable"
]
}
}
]
}