Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker args in rustflags #88

Open
Dev380 opened this issue Dec 18, 2023 · 0 comments
Open

Linker args in rustflags #88

Dev380 opened this issue Dec 18, 2023 · 0 comments

Comments

@Dev380
Copy link

Dev380 commented Dec 18, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant