Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: force M1 target for ARM64 macOS builds

Louis Beaumont6fd653ba8839
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 6301a0662..ceab93aea 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -16,8 +16,15 @@ rustflags = [
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-Wl,--allow-multiple-definition"]
+# Force M1 target for all ARM64 macOS builds
+# This prevents whisper.cpp from using i8mm instructions that only M2+ chips have
[target.aarch64-apple-darwin]
-rustflags = "-lc++ -l framework=Accelerate"
+rustflags = [
+ "-C", "target-cpu=apple-m1",
+ "-C", "link-arg=-framework",
+ "-C", "link-arg=Accelerate",
+ "-l", "c++",
+]
[target.x86_64-apple-darwin]
rustflags = "-lc++ -l framework=Accelerate"