-
I’d love a clear, easy way to specify CPU per workspace.
[profile.release] arch = "native"or[profile.release.x86_64] sse4 = trueor something like that.RUSTFLAGS=""is awkward to use and too easy to forget. -
For macOS specifically, it’s relatively easy to know baseline CPU requirements. macOS SDK/Clang has a concept of “macos deployment target”, and each macOS version has a specific minimum CPU requirement. (BTW, Rust/Cargo should be more aware of the macos deployment target too, because the default is supporting only the current OS version, so despite best efforts on the Rust side, the linker ruins portability anyway!).
7 Likes