From 335458cbcf81b792717a7ecbd8a2e9617468d662 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 28 Jul 2020 16:59:02 +0200 Subject: [PATCH] set lto=true for deltachat-core --- ndk-make.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ndk-make.sh b/ndk-make.sh index 119718d46..7042e77cd 100755 --- a/ndk-make.sh +++ b/ndk-make.sh @@ -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