Clang using GCC as linker?
Posted: Thu Sep 15, 2022 8:13 pm
Hello,
I was doing some work on my OS and noticed how clang calls my host's GCC to perform linking, seemingly discarding -fuse-ld=lld. How come this is?
I would like for my OSes build environment to be completely isolated from the host's tools so that it doesn't rely on anything in the host. Also, I don't want to have whole layer extra where issues could prop up. How can I make clang use LLD directly for linking and not GCC?
Thanks,
nexos
I was doing some work on my OS and noticed how clang calls my host's GCC to perform linking, seemingly discarding -fuse-ld=lld. How come this is?
I would like for my OSes build environment to be completely isolated from the host's tools so that it doesn't rely on anything in the host. Also, I don't want to have whole layer extra where issues could prop up. How can I make clang use LLD directly for linking and not GCC?
Thanks,
nexos