[compiler-rt][macOS]: Disable iOS support if iOS SDK is not found
authorTobias Hieta <tobias@plex.tv>
Wed, 8 Feb 2023 07:11:34 +0000 (08:11 +0100)
committerTobias Hieta <tobias@hieta.se>
Wed, 8 Feb 2023 07:12:34 +0000 (08:12 +0100)
commit78fb02107ae5819501af2600b0bebd48c1900a9b
tree8b25873be3317f87fcea862317d6558bb1295bb6
parentb4431b2d945b6fc19b1a55ac6ce969a8e06e1e93
[compiler-rt][macOS]: Disable iOS support if iOS SDK is not found

If you are missing the iOS SDK on your macOS (for example you don't have
full Xcode but just CommandLineTools) then CMake currently errors
out without a helpful message. This patch disables iOS support in
compiler-rt if the iOS SDK is not found. This can be overriden by
passing -DCOMPILER_RT_ENABLE_IOS=ON.

Reviewed By: delcypher, thetruestblue

Differential Revision: https://reviews.llvm.org/D133273
compiler-rt/cmake/base-config-ix.cmake