Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Build Android binaries with a larger page size (#12246)

Alex Crichton218ea9b32498
diff --git a/ci/build-build-matrix.js b/ci/build-build-matrix.js
index 2894f2fa9e..c3624159e7 100644
--- a/ci/build-build-matrix.js
+++ b/ci/build-build-matrix.js
@@ -68,6 +68,10 @@ const array = [
"build": "aarch64-android",
"os": ubuntu,
"target": "aarch64-linux-android",
+ // See https://developer.android.com/guide/practices/page-sizes
+ // for some more commentary, but apparently Google recommends passing this
+ // linker flag.
+ "env": { "RUSTFLAGS": "-Clink-arg=-z -Clink-arg=max-page-size=16384" },
},
{
"build": "x86_64-android",