cargo-xwin icon indicating copy to clipboard operation
cargo-xwin copied to clipboard

Linker args in rustflags

Open Dev380 opened this issue 1 year ago • 0 comments

I'm trying to set linker flags for identical code folding with xwin using

-Clink-args=-fuse-ld=lld -Clink-args=-Wl,--icf=all

However, both this and -Clink-args=-fuse-ld=rust-lld.exe (set as the linker in .cargo/config of Bevy fast builds) do not work as the code sizes seem to be exactly the same. Should I use a different compiler flag to set a linker for msvc or does the linker have a different name?

Dev380 avatar Dec 18 '23 18:12 Dev380