[cfe-commits] PATCH: Adds support for --sysroot flag
dimitry at andric.com
Tue Oct 19 02:23:44 PDT 2010
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
If you would ever use --sysroot with an ld that does not support
sysroot, you would simply get a linker error.
More information about the cfe-commits