--print target-cpus shows default target cpu, updated docs

This commit is contained in:
James Dietz 2023-04-26 21:11:14 -04:00
parent eb7a743421
commit ea17aa9141
3 changed files with 18 additions and 4 deletions

View file

@ -574,7 +574,8 @@ change in the future.
This instructs `rustc` to generate code specifically for a particular processor.
You can run `rustc --print target-cpus` to see the valid options to pass
here. Each target has a default base CPU. Special values include:
and the default target CPU for the current buid target.
Each target has a default base CPU. Special values include:
* `native` can be passed to use the processor of the host machine.
* `generic` refers to an LLVM target with minimal features but modern tuning.