Skip to content

-C target-cpu should offer a 'native' option #13841

Closed
@huonw

Description

@huonw

Currently -C target-cpu just takes a raw list of LLVM's known CPU codes (see rustc -C target-cpu=help), providing just -C target-cpu=native as a shorthand for "optimise for whatever my current CPU is" would be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions