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
Details
Details
- Reviewers
delcypher yln - Commits
- rG52beec76de83: Fix compiler-rt build on macOS without XCode
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@delcypher: would xcrun --sdk ${sdk_name} --show-sdk-version work in all cases? If yes, we could use it instead of xcodebuild.
LGTM otherwise.
compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake | ||
---|---|---|
10 | Would this function benefit from a similar change? | |
71 | Nitpick: indent not consistent with other occurences. |
Comment Actions
As I don't have XCode installed, it would be great if someone who does can confirm that this still works as expected.
Comment Actions
Applied it locally, ninja check-asan still works after rm -rf projects/compiler-rt. Thanks Alexander!
Would this function benefit from a similar change?