[cmake] Add an option to prefer public SDK in find_darwin_sdk_dir
authorKuba Mracek <mracek@apple.com>
Thu, 6 Jul 2017 23:09:16 +0000 (23:09 +0000)
committerKuba Mracek <mracek@apple.com>
Thu, 6 Jul 2017 23:09:16 +0000 (23:09 +0000)
commit935243486c70b2fe2854fee7e8645f92a8a97ce4
treede9fa5e9ed077ea0330c697e1bdba425acc2a953
parent6b030ab461712b8f286dc2a794c2ba6b76bf6c8f
[cmake] Add an option to prefer public SDK in find_darwin_sdk_dir

Adds a CMake option DARWIN_PREFER_PUBLIC_SDK, off by default. When on, this prefers to use the public SDK, even when an internal one is present. With this, it's easy to emulate a build that the public buildbots are doing.

Differential Revision: https://reviews.llvm.org/D35071

llvm-svn: 307330
compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake