-#### iPhoneOS/iOS
-#
-# It takes three prior-set environment variables to make it work:
-#
-# CROSS_COMPILE=/where/toolchain/is/usr/bin/ [note ending slash]
-# CROSS_TOP=/where/SDKs/are
-# CROSS_SDK=iPhoneOSx.y.sdk
-#
-# Exact paths vary with Xcode releases, but for couple of last ones
-# they would look like this:
-#
-# CROSS_COMPILE=`xcode-select --print-path`/Toolchains/XcodeDefault.xctoolchain/usr/bin/
-# CROSS_TOP=`xcode-select --print-path`/Platforms/iPhoneOS.platform/Developer
-# CROSS_SDK=iPhoneOS.sdk
-#
- "iphoneos-cross" => {
- inherit_from => [ "darwin-common" ],
- cflags => add("-isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common"),
- sys_id => "iOS",
- },
- "ios-cross" => {
- inherit_from => [ "darwin-common", asm("armv4_asm") ],
- # It should be possible to go below iOS 6 and even add -arch armv6,
- # thus targeting iPhone pre-3GS, but it's assumed to be irrelevant
- # at this point.
- cflags => add("-arch armv7 -mios-version-min=6.0.0 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common"),
- sys_id => "iOS",
- perlasm_scheme => "ios32",
- },
- "ios64-cross" => {
- inherit_from => [ "darwin-common", asm("aarch64_asm") ],
- cflags => add("-arch arm64 -mios-version-min=7.0.0 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common"),
- sys_id => "iOS",
- bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
- perlasm_scheme => "ios64",
- },
-