[PATCH] Adding experimental build support for building compiler-rt for iOS.

Chris Bieneman beanz at apple.com
Wed Jun 24 14:05:13 PDT 2015


Hi zaks.anna, samsonov, bogner, kubabrecka,

This patch updates and modifies some of the CMake support for building on Darwin platforms with the goal of adding support for iOS and making the code more managable. The following changes are present:

* Updated add_compiler_rt_object_libraries to properly handle setting architectures
* Added cmake/Modules/CompilerRTDarwinUtils.cmake to contain darwin-specific functions for detecting toolchain features
* Added iOS-specific flags
* Re-structured the code for setting platform-specific flags and enabling platforms
* Updated call sites of add_compiler_rt_darwin_dynamic_runtime to use SANITIZER_COMMON_DARWIN_${os}_ARCHES
* Added COMPILER_RT_ENABLE_IOS option (default value is Off) to control building for iOS

http://reviews.llvm.org/D10710

Files:
  CMakeLists.txt
  cmake/Modules/AddCompilerRT.cmake
  cmake/Modules/CompilerRTDarwinUtils.cmake
  lib/asan/CMakeLists.txt
  lib/ubsan/CMakeLists.txt

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10710.28402.patch
Type: text/x-patch
Size: 9462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150624/2ce221b6/attachment.bin>


More information about the llvm-commits mailing list