This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Use xcrun instead of xcodebuild to find the SDK directory
ClosedPublic

Authored by arichardson on Oct 31 2019, 4:42 AM.

Details

Summary

xcodebuild does not work unless XCode is installed whereas xcrun also work
when only the Command Line Tools are installed. Unlike the check for the
version (D69610), this did not cause an erro for me since the fallback to
/usr/include for the OSX sysroot worked.

Diff Detail

Event Timeline

arichardson created this revision.Oct 31 2019, 4:42 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 31 2019, 4:42 AM
Herald added subscribers: llvm-commits, Restricted Project, mgorny, dberris. · View Herald Transcript
yln accepted this revision.Oct 31 2019, 10:05 AM

Thanks Alexander! I did not run this on my machine, but since D69610 worked I think this should too.

This revision is now accepted and ready to land.Oct 31 2019, 10:05 AM
This revision was automatically updated to reflect the committed changes.