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 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