[compiler-rt] Use xcrun instead of xcodebuild to find the SDK directory
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 31 Oct 2019 21:17:55 +0000 (21:17 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 31 Oct 2019 21:17:56 +0000 (21:17 +0000)
commit8baedb82bafe2a9efb341b6207238b2af0f1ce07
tree67d8906d899b8d8378b5880b833216a8eda5ad69
parent52beec76de83934b9be4448deb3a509b224e4a7e
[compiler-rt] Use xcrun instead of xcodebuild to find the SDK directory

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.

Reviewers: yln, delcypher

Reviewed By: yln

Subscribers: dberris, mgorny, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D69659
compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
compiler-rt/cmake/config-ix.cmake