On Wed, 23 Apr 2025, Takashi Yano via Cygwin-apps wrote:

> On Tue, 22 Apr 2025 12:46:16 -0700 (PDT)
> Jeremy Drake wrote:
> > On Wed, 23 Apr 2025, Takashi Yano wrote:
> >
> > > cygwin packages lack lld, so clang uses ld (correct2?) to link,
> > > which does not support other targets than x86 (i686, x86_64).
> > > Therefore I disabled them.
> >
> > Correct.  At least for cygwin target, it actually calls gcc to do the
> > link, which in turns calls ld.
> >
> > > As you suggested, enabling other targets would be usefull if
> > > lld can be built for cygwin.
> >
> > Oh, it can absolutely be *built* for cygwin.  The only issue is that it
> > cannot easily *target* cygwin, so it'd only really be useful for
> > cross-compiling.
>
> Ah, you meant enabling other targets for mingw compiler,
> and lld can be build for mingw compiler. Right?

llvm/clang/lld is not like binutils/gcc in that respect, there need only
be one "compiler" built, and that can target anything (assuming the
architectures aren't disabled).  clang/lld could be used to target mingw,
or linux, or anything else that clang/lld supports that you can give it a
sysroot for.

Reply via email to