-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust: use {build,host}Platform.{gcc.arch,rustc.flags} #211868
Conversation
Hrm, the situation on I think we're going to end up with some kind of rosetta stone. Also,
... apparently "this LLVM version" means "all LLVM versions (unless you apply the Rustc should be telling people to use `llc -march=aarch64 -mattr=help`:Available CPUs for this target:a64fx - Select the a64fx processor. Available features for this target: a35 - Cortex-A35 ARM processors. Use +feature to enable a feature, or -feature to disable it. |
This partially reverts commit 470e613.
This commit causes `rustc` to use `stdenv.hostPlatform.gcc.arch`, if present, to set `-C target-cpu`, and do similarly for the `buildPlatform`. Commented-out lines to do similarly for `gcc.tune` are included, to be uncommented once `-Z tune-cpu` is stabilized. This commit also allows passing arbitrary `rustc` flags through `{build,host}Platform.rust.flags`.
Description of changes
This commit causes
rustc
to usestdenv.hostPlatform.gcc.arch
, if present, to set-C target-cpu
, and do similarly for thebuildPlatform
. Commented-out lines to do similarly forgcc.tune
are included, to be uncommented once-Z tune-cpu
is stabilized.This commit also allows passing arbitrary
rustc
flags through{build,host}Platform.rustc.flags
.Things done
./result/bin/
)