[CMake] [PR27403] Fix COMPILER_RT_ENABLE_IOS when using Xcode from the App Store.
authorChris Bieneman <beanz@apple.com>
Tue, 26 Apr 2016 17:53:25 +0000 (17:53 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 26 Apr 2016 17:53:25 +0000 (17:53 +0000)
commit380ebd0b2ca6cf223ca3f827c2062b1b18f6d0c8
treec85fdeb26c530bbac6f5d9573ee71b834f9496f5
parentbda187decd34572c8bf601f9ca4928cb0e880606
[CMake] [PR27403] Fix COMPILER_RT_ENABLE_IOS when using Xcode from the App Store.

This change modifies find_darwin_sdk_dir to set a variable if a Darwin "Internal" SDK is present which allows CMake to disable components that require internal-only APIs.

This mechanism is then used to disable TSan when an internal SDK is not present.

llvm-svn: 267575
compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
compiler-rt/cmake/config-ix.cmake