https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87243
--- Comment #10 from Jack Howarth <howarth.at.gcc at gmail dot com> --- (In reply to Iain Sandoe from comment #8) Why can't maybe_get_sysroot_from_sdkroot() be expanded so that it attempts to execute 'xcrun --show-sdk-path' to obtain SDKROOT when unset? IMHO, this would mitigate the overhead for the compiler as xrcun would only be called when absolutely needed. The overall overhead in that case shouldn't be much worst than Apple's compiler wrapper approach to calling their compiler through xcrun itself.