[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)
Tomohiro Kashiwada via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 18 03:20:36 PDT 2025
kikairoya wrote:
> > > $ clang++ -fuse-ld=lld hello.cc
> >
> >
> > Do you have patched to LLD locally? This should fail with `unable to find library -lkernel32`.
>
> this new driver should be passing all the necessary `-L` paths to the linker, including `/usr/lib/w32api`
Ah, yes, I was wrong. Paths are added here that I missed. Sorry.
https://github.com/llvm/llvm-project/blob/dce445b3b301f605a6e53e047e3109cfbae0efc0/clang/lib/Driver/ToolChains/Cygwin.cpp#L47-L49
https://github.com/llvm/llvm-project/blob/dce445b3b301f605a6e53e047e3109cfbae0efc0/clang/lib/Driver/ToolChains/Cygwin.cpp#L238
https://github.com/llvm/llvm-project/pull/147960
More information about the cfe-commits
mailing list