-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-target-specsArea: Compile-target specificationsArea: Compile-target specificationsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
What is the default value of target-cpu if no -C target-cpu= is passed to rustc? Is it native, generic, something else?
It should probably be documented around here:
rust/src/doc/rustc/src/codegen-options/index.md
Lines 572 to 580 in 1151ea6
| ## target-cpu | |
| 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: | |
| * `native` can be passed to use the processor of the host machine. | |
| * `generic` refers to an LLVM target with minimal features but modern tuning. |
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-target-specsArea: Compile-target specificationsArea: Compile-target specificationsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.