[cfe-dev] Clang on Windows targeting gcc requirements

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 7 11:45:49 PDT 2015


On Mon, Jul 06, 2015 at 04:23:49PM +0300, İsmail Dönmez wrote:
> Hi,
> 
> On Fri, Jul 3, 2015 at 5:59 PM, Yaron Keren <yaron.keren at gmail.com> wrote:
> > You only need to have the bin directory in your PATH. clang will find the
> > include and library directory based on the bin directory. There are no fixed
> > paths, you can put in c:\mingw or wherever.
> 
> I have one problem with this running under Cygwin. When I use
> --sysroot its using /usr/bin/ld instead of SYSROOT/bin/ld which of
> course fails. Note that I am not using Cygwin's mingw packages.

Sysroot is not used for tools look-up, that would be pretty insane for
cross-compiling. You want to use -B for that.

Joerg




More information about the cfe-dev mailing list