diff options
author | David Benjamin <davidben@google.com> | 2017-04-06 23:26:04 -0400 |
---|---|---|
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | 2017-04-07 17:13:44 +0000 |
commit | aff72a38052508664439b6d8bcaca97e23c6cc6a (patch) | |
tree | 2a7b1aac4de8f2462d22d8c24d8c4a6df30ccf90 /BUILDING.md | |
parent | 7182d51fb9f1fddf964a66b297d9a9548bbebe5f (diff) | |
download | boringssl-aff72a38052508664439b6d8bcaca97e23c6cc6a.zip boringssl-aff72a38052508664439b6d8bcaca97e23c6cc6a.tar.gz boringssl-aff72a38052508664439b6d8bcaca97e23c6cc6a.tar.bz2 |
Add the start of standalone iOS build support.
The built-in CMake support seems to basically work, though it believes
you want to build a fat binary which doesn't work with how we build
perlasm. (We'd need to stop conditioning on CMAKE_SYSTEM_PROCESSOR at
all, wrap all the generated assembly files in ifdefs, and convince the
build to emit more than one. Probably not worth bothering for now.)
We still, of course, need to actually test the assembly on iOS before
this can be shipped anywhere.
BUG=48
Change-Id: I6ae71d98d706be03142b82f7844d1c9b02a2b832
Reviewed-on: https://boringssl-review.googlesource.com/14645
Commit-Queue: David Benjamin <davidben@google.com>
Commit-Queue: Steven Valdez <svaldez@google.com>
Reviewed-by: Steven Valdez <svaldez@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Diffstat (limited to 'BUILDING.md')
-rw-r--r-- | BUILDING.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/BUILDING.md b/BUILDING.md index e691afd..3a2eae8 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -96,6 +96,15 @@ higher to build aarch64 binaries. For other options, see [android-cmake's documentation](./third_party/android-cmake/README.md). +### Building for iOS + +To build for iOS, pass `-DCMAKE_OSX_SYSROOT=iphoneos` and +`-DCMAKE_OSX_ARCHITECTURES=ARCH` to CMake, where `ARCH` is the desired +architecture, matching values used in the `-arch` flag in Apple's toolchain. + +Passing multiple architectures for a multiple-architecture build is not +supported. + ## Known Limitations on Windows * Versions of CMake since 3.0.2 have a bug in its Ninja generator that causes |