I have a MacBook with an m2-max CPU:
❯ sysctl -n machdep.cpu.brand_string Apple M2 Max
But rustc defaults to m1:
❯ rustc +nightly --version rustc 1.74.0-nightly (58eefc33a 2023-08-24) ❯ rustc +nightly --print target-cpus Available CPUs for this target: native - Select the CPU of the current host (currently apple-m1). a64fx ... apple-latest apple-m1 - This is the default target CPU for the current build target (currently arm64-apple-macosx11.0.0). apple-m2 apple-s4
Is there a reason for this that I am missing, or is it worth me trying to dig into this and create a PR to default to m2 when running an m2-max?