-
Notifications
You must be signed in to change notification settings - Fork 66
/
binding.gyp
35 lines (35 loc) · 1.07 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
{
"variables": {"openssl_fips": ""},
"targets": [
{
"target_name": "simsimd",
"sources": ["javascript/lib.c", "c/lib.c"],
"include_dirs": ["include"],
"defines": [
"SIMSIMD_NATIVE_F16=0",
"SIMSIMD_NATIVE_BF16=0",
"SIMSIMD_DYNAMIC_DISPATCH=1",
],
"cflags": [
"-std=c11",
"-ffast-math",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
"-Wno-cast-function-type",
"-Wno-switch",
],
"conditions": [
[
"OS=='mac'",
{
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "11.0",
"OTHER_CFLAGS": ["-arch arm64", "-arch x86_64"],
"OTHER_LDFLAGS": ["-arch arm64", "-arch x86_64"],
}
},
]
],
}
],
}