iOS: don't build deps for unused arches
parent
907a84a7d5
commit
3766b3f3af
|
@ -17,7 +17,7 @@ for x in armv7 arm64; do
|
||||||
if [ $x = armv7 ]; then
|
if [ $x = armv7 ]; then
|
||||||
CURL_CFLAGS="-arch armv7 $IOS_FLAGS_NOARCH"
|
CURL_CFLAGS="-arch armv7 $IOS_FLAGS_NOARCH"
|
||||||
else
|
else
|
||||||
CURL_CFLAGS="-arch arm64 -arch arm64e $IOS_FLAGS_NOARCH"
|
CURL_CFLAGS="-arch arm64 $IOS_FLAGS_NOARCH"
|
||||||
fi
|
fi
|
||||||
CFLAGS="$CURL_CFLAGS" \
|
CFLAGS="$CURL_CFLAGS" \
|
||||||
./configure --host=arm-apple-darwin --prefix=/ --disable-shared --enable-static \
|
./configure --host=arm-apple-darwin --prefix=/ --disable-shared --enable-static \
|
||||||
|
|
|
@ -30,14 +30,6 @@ make amalg -j \
|
||||||
mv src/libluajit.a templib_64.a
|
mv src/libluajit.a templib_64.a
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
# 64-bit [arm64e]
|
|
||||||
make amalg -j \
|
|
||||||
DEFAULT_CC=clang HOST_CC=clang CROSS="$(dirname $IOS_CC)/" TARGET_SYS=iOS \
|
|
||||||
TARGET_FLAGS="-arch arm64e $IOS_FLAGS_NOARCH" \
|
|
||||||
TARGET_CFLAGS+="-Wno-implicit-function-declaration"
|
|
||||||
mv src/libluajit.a templib_64e.a
|
|
||||||
make clean
|
|
||||||
|
|
||||||
# repack into one .a
|
# repack into one .a
|
||||||
lipo -create templib_*.a -output libluajit.a
|
lipo -create templib_*.a -output libluajit.a
|
||||||
rm templib_*.a
|
rm templib_*.a
|
||||||
|
|
|
@ -7,5 +7,5 @@ osver=10.3
|
||||||
export IOS_COMPILER=$(xcrun --sdk $sdk --find clang)
|
export IOS_COMPILER=$(xcrun --sdk $sdk --find clang)
|
||||||
export IOS_CC=$IOS_COMPILER
|
export IOS_CC=$IOS_COMPILER
|
||||||
export IOS_CXX=$IOS_COMPILER
|
export IOS_CXX=$IOS_COMPILER
|
||||||
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 -fno-unwind-tables -fno-asynchronous-unwind-tables -Ofast"
|
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"
|
export IOS_FLAGS_NOARCH="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -miphoneos-version-min=$osver -fvisibility=hidden -fdata-sections -ffunction-sections -Ofast"
|
||||||
|
|
Loading…
Reference in New Issue