[llvm] r295392 - [CMake] Add variable IOS to iOS toolchain

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 17:11:42 PST 2017


Author: cbieneman
Date: Thu Feb 16 19:11:41 2017
New Revision: 295392

URL: http://llvm.org/viewvc/llvm-project?rev=295392&view=rev
Log:
[CMake] Add variable IOS to iOS toolchain

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.

Modified:
    llvm/trunk/cmake/platforms/iOS.cmake

Modified: llvm/trunk/cmake/platforms/iOS.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/platforms/iOS.cmake?rev=295392&r1=295391&r2=295392&view=diff
==============================================================================
--- llvm/trunk/cmake/platforms/iOS.cmake (original)
+++ llvm/trunk/cmake/platforms/iOS.cmake Thu Feb 16 19:11:41 2017
@@ -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




More information about the llvm-commits mailing list