Skip to content

Document the default value of target-cpu #110647

Closed
@FedericoStra

Description

@FedericoStra

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:

## 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 toolsA-target-specsArea: Compile-target specificationsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions