diff --git a/.cargo/config.toml b/.cargo/config.toml index 066830b464..ad1e8ce860 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -26,3 +26,8 @@ rustflags = ["-C", "link-args=-stack:10000000", "-C", "target-feature=+crt-stati # [target.aarch64-apple-darwin] # linker = "clang" # rustflags = ["-C", "link-arg=-fuse-ld=mold"] + +[target.aarch64-apple-darwin] +# We can guarantee that this target will always run on a CPU with _at least_ +# these capabilities, so let's optimize for them +rustflags = ["-Ctarget-cpu=apple-m1"] \ No newline at end of file