[cfe-users] Unexpected include directories when cross-compiling

Jeffrey Walton via cfe-users cfe-users at lists.llvm.org
Tue Sep 22 11:42:09 PDT 2015

> Another thing I noticed occurs when using the -sysroot option. clang then
> tries to use $sysroot/usr/include. In my oppinion it should use
> $sysroot/include instead.

I could be wrong here, but --sysroot and --isysroot (with some hand
waiving) means use <corss-path>/usr/include to find headers and
<corss-path>/usr/lib to find libraries. That is, --sysroot and
--isysroot point to the top or root of the tree.


More information about the cfe-users mailing list