12 lines
636 B
Bash
Executable File
12 lines
636 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# This file sets the appropiate compiler and flags for compiling for iOS without XCode
|
|
sdk=iphoneos
|
|
osver=10.3
|
|
|
|
export IOS_COMPILER=$(xcrun --sdk $sdk --find clang)
|
|
export IOS_CC=$IOS_COMPILER
|
|
export IOS_CXX=$IOS_COMPILER
|
|
export IOS_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch arm64 -miphoneos-version-min=$osver -fvisibility=hidden -fdata-sections -ffunction-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -Ofast"
|
|
export IOS_FLAGS_NOARCH="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -miphoneos-version-min=$osver -fvisibility=hidden -fdata-sections -ffunction-sections -Ofast"
|