[llvm-commits] getting -with-sysroot to work

Devang Patel dpatel at apple.com
Mon Jul 7 17:10:19 PDT 2008


On Jul 4, 2008, at 11:08 AM, Rafael Espindola wrote:

> Compiling llvm-gcc with --with-sysroot causes the resulting compiler
> to fail to find its own headers (like stddef.h).
>
> I was able to make it work by removing an Apple local change. I am
> sure Apple needs this for some reason. Maybe we can try to make it
> generic (a configure flag at least) and include it on mainline GCC?

The change reflects the way compiler SDKs are installed and searched  
by Apple gcc is used. Feel free to add a configure flag to make  
appropriate changes for your platform, but pl. don't change compiler  
behavior on darwin :)

-
Devang






More information about the llvm-commits mailing list