Skip to content

Optimize for size #32296

Closed
Closed
@engstad

Description

@engstad

It seems that the compiler doesn't understand -Os (optimize for size):

$ rustc -C opt-level=s -Z no-landing-pads --target thumbv7em-none-eabi -g --emit obj -L libcore-thumbv7em -o main.o ./blink/src/main.rs
error: incorrect value `s` for codegen option `opt-level` - a number was expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)T-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