mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #1512 from deltachat/force-lto
set lto=true for deltachat-core
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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