Skip to content

Split the /opt:ref,icf arguments to i686-pc-windows-msvc linker #29126

@alexchandel

Description

@alexchandel

Currently rustc passes /opt:ref,icf to the linker for the i686-pc-windows-msvc target, even when -C opt-level=0 is explicitly passed. LLD's link.exe flavor doesn't support comma-separated arguments, and would require /opt:ref /opt:icf. rustc should pass these separately.

Moreover, rustc needs provide a way to stop them from being passed at all, as I explicitly specified zero optimiations, and didn't pass -C lto.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesO-windows-msvcToolchain: MSVC, Operating system: WindowsP-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions