mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
set lto=true for deltachat-core
This commit is contained in:
@@ -32,21 +32,25 @@ unset CPATH
|
||||
|
||||
echo "-- cross compiling to armv7-linux-androideabi (arm) --"
|
||||
export CFLAGS=-D__ANDROID_API__=16
|
||||
RUSTFLAGS="-C lto=on -C embed-bitcode=yes" \
|
||||
TARGET_CC=armv7a-linux-androideabi16-clang \
|
||||
cargo +`cat rust-toolchain` build --release --target armv7-linux-androideabi -p deltachat_ffi
|
||||
|
||||
echo "-- cross compiling to aarch64-linux-android (arm64) --"
|
||||
export CFLAGS=-D__ANDROID_API__=21
|
||||
RUSTFLAGS="-C lto=on -C embed-bitcode=yes" \
|
||||
TARGET_CC=aarch64-linux-android21-clang \
|
||||
cargo +`cat rust-toolchain` build --release --target aarch64-linux-android -p deltachat_ffi
|
||||
|
||||
echo "-- cross compiling to i686-linux-android (x86) --"
|
||||
export CFLAGS=-D__ANDROID_API__=16
|
||||
RUSTFLAGS="-C lto=on -C embed-bitcode=yes" \
|
||||
TARGET_CC=i686-linux-android16-clang \
|
||||
cargo +`cat rust-toolchain` build --release --target i686-linux-android -p deltachat_ffi
|
||||
|
||||
echo "-- cross compiling to x86_64-linux-android (x86_64) --"
|
||||
export CFLAGS=-D__ANDROID_API__=21
|
||||
RUSTFLAGS="-C lto=on -C embed-bitcode=yes" \
|
||||
TARGET_CC=x86_64-linux-android21-clang \
|
||||
cargo +`cat rust-toolchain` build --release --target x86_64-linux-android -p deltachat_ffi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user