From 335458cbcf81b792717a7ecbd8a2e9617468d662 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 28 Jul 2020 16:59:02 +0200 Subject: [PATCH 1/2] 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 From b4ed66eae0afc9e60c787389c3d7fbce782064ee Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 28 Jul 2020 17:03:40 +0200 Subject: [PATCH 2/2] update docs --- docs/release-checklist.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/release-checklist.md b/docs/release-checklist.md index 30209deb8..ed0367bad 100644 --- a/docs/release-checklist.md +++ b/docs/release-checklist.md @@ -4,7 +4,6 @@ on the command-line: 1. update core rust submodule, if needed: $ ./tools/update-core.sh - and make sure, `lto=true` is present in jni/deltachat-core-rust/Cargo.toml. depending on how much you trust in rust, you might want to do a ./tools/clean-core.sh before building