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

How to use msvc-link when linking? #34

Open
icls1337 opened this issue Sep 21, 2023 · 5 comments
Open

How to use msvc-link when linking? #34

icls1337 opened this issue Sep 21, 2023 · 5 comments
Labels
wontfix This will not be worked on

Comments

@icls1337
Copy link

With the clang command

@CR3Swapper
Copy link
Contributor

CR3Swapper commented Sep 21, 2023

image

shortcut link.exe to msvc linker instead of using the installed linker which is llvm linker.

@icls1337
Copy link
Author

icls1337 commented Sep 21, 2023

image

shortcut link.exe to msvc linker instead of using the installed linker which is llvm linker.

can you name the command used at compile time?
I tried /clang:-fuse-ld=link .
and more

@gmh5225
Copy link
Collaborator

gmh5225 commented Sep 21, 2023

lld-link must be used together in the future, so there are no plans to provide an option to use link.exe.
A simple method is to rename link.exe to lld-link.exe. then replace.

@gmh5225 gmh5225 added the wontfix This will not be worked on label Sep 21, 2023
@gmh5225
Copy link
Collaborator

gmh5225 commented Sep 21, 2023

Regarding other libs compiled by MSVC. I recommend you to turn off /GL

@hzqst
Copy link

hzqst commented Oct 11, 2023

https://learn.microsoft.com/en-us/answers/questions/733176/how-to-link-progs-with-msvcs-link-exe-instead-of-l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants