mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
33 lines
872 B
TOML
33 lines
872 B
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.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"]
|
|
|
|
# optimizations to reduce the binary size
|
|
[profile.release]
|
|
strip = true
|
|
opt-level = "z"
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|