Skip to content

Commit ea69925

Browse files
mvogttechclaude
andcommitted
fix: gate x86 cflags behind target_arch for macOS arm64 compatibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5ba2440 commit ea69925

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

binding.gyp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@
1717
}
1818
}
1919
}],
20+
["OS!='win' and target_arch=='x64'", {
21+
"cflags": ["-Wall", "-O2", "-mssse3", "-msse4.1", "-msha", "-mgfni"],
22+
"xcode_settings": {
23+
"OTHER_CFLAGS": ["-Wall", "-O2", "-mssse3", "-msse4.1", "-msha", "-mgfni"]
24+
}
25+
}],
26+
["OS!='win' and target_arch!='x64'", {
27+
"cflags": ["-Wall", "-O2"],
28+
"xcode_settings": {
29+
"OTHER_CFLAGS": ["-Wall", "-O2"]
30+
}
31+
}],
2032
["OS=='linux' and target_arch=='x64'", {
2133
"actions": [
2234
{
@@ -71,7 +83,6 @@
7183
}
7284
}]
7385
],
74-
"cflags": ["-Wall", "-O2", "-mssse3", "-msse4.1", "-msha", "-mgfni"],
7586
"defines": ["NAPI_VERSION=9"]
7687
}
7788
]

0 commit comments

Comments
 (0)