-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: WindowsP-lowLow priorityLow priority
Description
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
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: WindowsP-lowLow priorityLow priority