[cfe-commits] PATCH: Restrict isysroot to only apply to system header search paths beginning with '/'

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Nov 14 12:39:37 PST 2010


On 13 November 2010 17:01, Chandler Carruth <chandlerc at google.com> wrote:
> The idea is that it isn't particularly useful to try to place relative paths
> within a sysroot. I can't find any particular pattern in how GCC deals with
> this, so it seems extremely unlikely to break anyone currently using
> '-isysroot'. The only way for this to make a difference is if using
> C_INCLUDE_DIRS or CXX_INCLUDE_* macros to provide relative paths.

This is probably fine. I have no idea what gcc does if one of its
builtin search paths is not absolute.

Can you use Path.isAbsolute()?
 _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>

Cheers,
Rafael



More information about the cfe-commits mailing list