On 2010-10-19 02:45, Chandler Carruth wrote:
> This patch adds support for the --sysroot flag. It does so by passing the
> -isysroot down to Clang's CC1. The existing logic already passed the flag to
> the linker, which may or may not reject in on some systems.
>
> Any concerns about this implementation strategy?

This seems fine; gcc has this as a configure-time detection, and then
defines HAVE_LD_SYSROOT or something like that.  Very safe, but also
very inflexible.

If you would ever use --sysroot with an ld that does not support
sysroot, you would simply get a linker error.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to