mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
Support more platforms by using a the soft float musl target for aarch32/armv7/v8. The installer is not performance bound by floating point operations.
46 lines
1.3 KiB
TOML
46 lines
1.3 KiB
TOML
[target.aarch64-apple-darwin]
|
|
linker = "rust-lld"
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
linker = "rust-lld"
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
# apt install build-essential libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
|
|
[target.armv7-unknown-linux-gnueabihf]
|
|
linker = "arm-linux-gnueabihf-gcc"
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[target.armv7-unknown-linux-musleabihf]
|
|
linker = "rust-lld"
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[target.armv7-unknown-linux-musleabi]
|
|
linker = "rust-lld"
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
# Disable rust-lld for x86 macOS because the linker crashers when compiling
|
|
# the installer in release mode with debug info on.
|
|
# [target.x86_64-apple-darwin]
|
|
# linker = "rust-lld"
|
|
# rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[target.x86_64-unknown-linux-musl]
|
|
linker = "rust-lld"
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
|
|
[profile.release]
|
|
# keep line numbers in stack traces for non-firmware binaries
|
|
debug = "limited"
|
|
lto = "fat"
|
|
opt-level = "z"
|
|
strip = "debuginfo"
|
|
|
|
# optimizations to reduce the binary size of firmware binaries
|
|
[profile.firmware]
|
|
inherits = "release"
|
|
strip = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
debug = false
|