]> granicus.if.org Git - llvm/commitdiff
[CMake] Add variable IOS to iOS toolchain
authorChris Bieneman <beanz@apple.com>
Fri, 17 Feb 2017 01:11:41 +0000 (01:11 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 17 Feb 2017 01:11:41 +0000 (01:11 +0000)
This is useful for some edge cases where detecting things gets tricky. Specifically LLDB needs this to support iOS because CMake doesn't support running tests using obj-c code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295392 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/platforms/iOS.cmake

index 99692fd6d2aaedd406db763aa7724ee475d36020..15c7aae12c702bfdbcdce50460bf8df3f3273366 100644 (file)
@@ -4,6 +4,7 @@ SET(CMAKE_SYSTEM_NAME Darwin)
 SET(CMAKE_SYSTEM_VERSION 13)
 SET(CMAKE_CXX_COMPILER_WORKS True)
 SET(CMAKE_C_COMPILER_WORKS True)
+SET(IOS True)
 
 if(NOT CMAKE_OSX_SYSROOT)
   execute_process(COMMAND xcodebuild -version -sdk iphoneos Path