Fix compiler-rt build on macOS without XCode
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 31 Oct 2019 21:17:23 +0000 (21:17 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 31 Oct 2019 21:17:24 +0000 (21:17 +0000)
commit52beec76de83934b9be4448deb3a509b224e4a7e
tree3aa73bdbd9812184c73b37308a136abe35977718
parent54a873b158bd463db48829407f3939ff9a7be65a
Fix compiler-rt build on macOS without XCode

Summary:
Starting with 8a5bfbe6db2824642bf9a1d27a24c5b6132b244f (D68292) this file
unconditionally uses xcodebuild to get the SDK version. On my system this
always fails with
`xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance`

Reviewers: delcypher, yln

Reviewed By: delcypher, yln

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

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D69610
compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake