From 60ab2f7c2be2708c95798a0d9da53cd4805ece58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20CORTIER?= Date: Tue, 10 Dec 2024 12:49:42 +0900 Subject: [PATCH] build(ffi): support 16 KB page sizes on Android --- .github/workflows/nuget-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index e55d3b97c..ef0dda421 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -121,24 +121,28 @@ jobs: echo "CC_i686-linux-android=$AndroidToolchain/bin/i686-linux-android21-clang" >> $Env:GITHUB_ENV echo "CXX_i686-linux-android=$AndroidToolchain/bin/i686-linux-android21-clang++" >> $Env:GITHUB_ENV echo "AR_i686-linux-android=$AndroidToolchain/bin/llvm-ar" >> $Env:GITHUB_ENV + echo "rustflags = [`"-C`", `"link-args=-zmax-page-size=16384`"]" echo "[target.x86_64-linux-android]" >> $CargoConfigFile echo "linker=`"$AndroidToolchain/bin/x86_64-linux-android21-clang`"" >> $CargoConfigFile echo "CC_x86_64-linux-android=$AndroidToolchain/bin/x86_64-linux-android21-clang" >> $Env:GITHUB_ENV echo "CXX_x86_64-linux-android=$AndroidToolchain/bin/x86_64-linux-android21-clang++" >> $Env:GITHUB_ENV echo "AR_x86_64-linux-android=$AndroidToolchain/bin/llvm-ar" >> $Env:GITHUB_ENV + echo "rustflags = [`"-C`", `"link-args=-zmax-page-size=16384`"]" echo "[target.armv7-linux-androideabi]" >> $CargoConfigFile echo "linker=`"$AndroidToolchain/bin/armv7a-linux-androideabi21-clang`"" >> $CargoConfigFile echo "CC_armv7-linux-androideabi=$AndroidToolchain/bin/armv7a-linux-androideabi21-clang" >> $Env:GITHUB_ENV echo "CXX_armv7-linux-androideabi=$AndroidToolchain/bin/armv7a-linux-androideabi21-clang++" >> $Env:GITHUB_ENV echo "AR_armv7-linux-androideabi=$AndroidToolchain/bin/llvm-ar" >> $Env:GITHUB_ENV + echo "rustflags = [`"-C`", `"link-args=-zmax-page-size=16384`"]" echo "[target.aarch64-linux-android]" >> $CargoConfigFile echo "linker=`"$AndroidToolchain/bin/aarch64-linux-android21-clang`"" >> $CargoConfigFile echo "CC_aarch64-linux-android=$AndroidToolchain/bin/aarch64-linux-android21-clang" >> $Env:GITHUB_ENV echo "CXX_aarch64-linux-android=$AndroidToolchain/bin/aarch64-linux-android21-clang++" >> $Env:GITHUB_ENV echo "AR_aarch64-linux-android=$AndroidToolchain/bin/llvm-ar" >> $Env:GITHUB_ENV + echo "rustflags = [`"-C`", `"link-args=-zmax-page-size=16384`"]" Get-Content -Path "$CargoConfigFile"