Skip to content

Commit 9fd5925

Browse files
committed
fix(build): add x86 linker config for cargo cross-compilation
Without target-specific linker entries in .cargo/config.toml, cargo falls back to the system cc which can't find -llog and -lunwind from the Android sysroot.
1 parent 081e16e commit 9fd5925

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rust/.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ linker = "aarch64-linux-android26-clang"
33

44
[target.armv7-linux-androideabi]
55
linker = "armv7a-linux-androideabi26-clang"
6+
7+
[target.x86_64-linux-android]
8+
linker = "x86_64-linux-android26-clang"
9+
10+
[target.i686-linux-android]
11+
linker = "i686-linux-android26-clang"

0 commit comments

Comments
 (0)