Skip to content

-O -C lto is *not* same to -C opt-level=2 -C lto #22677

Closed
@lifthrasiir

Description

@lifthrasiir

Fallout of #21191. -C opt-level=2 sets CodegenOptions::opt_level but -O doesn't, and -C lto path only looks at that. Due to the fallback from LTO path, -O -C lto is currently same to -C opt-level=0 -C lto (!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions