d2e3993398
* feat: cross-compile for android (! for termux users) * chore: Update docs for - feat: cross-compile for android (! for termux users)
17 lines
544 B
TOML
17 lines
544 B
TOML
[target.'cfg(target_os = "macos")']
|
|
rustflags = [
|
|
"-C", "link-arg=-undefined",
|
|
"-C", "link-arg=dynamic_lookup",
|
|
]
|
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
rustflags = ["-C", "target-feature=-crt-static"]
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
rustflags = ["-C", "target-feature=-crt-static"]
|
|
|
|
# Android/Termux: no hardcoded linker so native Termux builds use the system cc.
|
|
# For CI cross-compilation the linker is set via CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER env var.
|
|
[target.aarch64-linux-android]
|
|
rustflags = ["-C", "link-args=-rdynamic"]
|