From 989a14709c0492b37ee026303dcf49756ace80f4 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:57:07 -0500 Subject: [PATCH] optimize aarch64 when able (#10433) # Description This PR optimizes for the aarch64 m1 processor when able. # User-Facing Changes # Tests + Formatting # After Submitting --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) 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