2016-11-05 23:14:22 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# This file sets the appropiate compiler and flags for compiling for iOS without XCode
|
|
|
|
sdk=iphoneos
|
2018-12-26 22:59:09 +01:00
|
|
|
osver=9.0
|
2016-11-05 23:14:22 +01:00
|
|
|
|
|
|
|
export IOS_COMPILER=$(xcrun --sdk $sdk --find clang)
|
|
|
|
export IOS_CC=$IOS_COMPILER
|
|
|
|
export IOS_CXX=$IOS_COMPILER
|
2019-05-10 22:33:16 +02:00
|
|
|
export IOS_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch armv7s -arch arm64 -arch arm64e -miphoneos-version-min=$osver -fvisibility=hidden -fdata-sections -ffunction-sections -Ofast"
|
|
|
|
export IOS_FLAGS_LUA="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch arm64 -miphoneos-version-min=$osver -fvisibility=hidden -fdata-sections -ffunction-sections -Ofast"
|