I'm looking at adding --sysroot support to Clang, but I'm a little confused by the current -isysroot behavior.<div><br></div><div>I had originally assumed that when moving from the driver to cc1, we would split sysroot into lib-only and include-only modes, and the include-only would be the existing -isysroot, and the lib-only would need to be added. However, inside of the Darwin tools, I noticed that -isysroot is actually used when searching for libstdc++, and is translated into -syslibroot when the linker is invoked? Was that intentional, or was it merely expedient due to the lack of a proper --sysroot flag that is meant to apply to both headers and libraries? In adding sysroot, should I switch Darwin over or not?</div>