Skip to content

rustc opt parsing: -C "llvm-args=-mcpu=arm1176jzf-s" doesn't get whole input #14228

Closed
@pnkfelix

Description

@pnkfelix

This was reported by a user on IRC.

https://gist.github.com/thebreadcat/b47c0f49d736a990b556

Shell

$ rustc --target=arm-unknown-linux-gnueabihf main.rs -C linker=arm-linux-gnueabihf-g++ -C "llvm-args=-mcpu=arm1176jzf-s"
rustc: Unknown command line argument '-mcpu=arm1176jzf-s'. Try: 'rustc -help'
rustc: Did you mean '-debug=arm1176jzf-s'?

I am logging it here in the hopes that I remember to look at it again later when I look into hacking a little on getopts (for #14223)

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