<div>Hi!</div><div> </div><div>We've just tried to setup "DEFAULT_SYSROOT" in cmake while compiling clang for Darwin and bumped into several test failures.</div><div> </div><div>Most indicating is a "sysroot.c" failure:<div><a href="https://pastebin.com/Bh1eVRb4">https://pastebin.com/Bh1eVRb4</a></div><div> </div><div>It seems that one of subtests passes "--isysroot" into the driver call, and expects that driver will pass the same value into "-syslibroot" for linker. But as long as default sysroot has been specified, it overwhelms "--isysroot" impact on linker and thus bypass another string into "-syslibroot".</div><div> </div><div>Another question. Why such tests relies on a logic, that if you pass cc1 related parameter into the driver it should bypass it into the linker. Obviously it is a very fragile assumption, or I miss something and there is special role for "isysroot" while passing to driver?</div><div> </div><div>Thanks!</div><div> </div><div>Also here is a check-clang log with full list of failures:</div><div> </div><div><a href="https://pastebin.com/GxPcS5sf">https://pastebin.com/GxPcS5sf</a></div><div> </div><div>And this is a CI job which fails:</div><div> </div><div><a href="https://github.com/spacemaze/cppl/actions/runs/148363495">https://github.com/spacemaze/cppl/actions/runs/148363495</a></div> <div>-Stepan Dyatkovskiy</div></div>