Codegen on mac vs linux

I believe the default target on darwin is to target very general target environments for maximum compatibility:

% rustc +nightly -Z unstable-options --print target-spec-json | jq '."llvm-target"'
"x86_64-apple-macosx10.7.0"

See this thread for information about how you can fix this for your builds, and discussion about changing the default.

2 Likes