forgeFRENParcourir les dépôts

roneo.cargoconfig.toml

main

At commit 98ff76d

22 lines · 927 BRaw
  1. # Release binary hygiene:
  2. # - Strip symbols & dead code directly in the native linker (avoids broken rust-objcopy rpath
  3. # on some macOS toolchains and guarantees zero build warnings across macOS & Linux).
  4. # - Note: `--remap-path-prefix` is passed in release builds to avoid leaking local home paths.
  5. [target.aarch64-apple-darwin]
  6. rustflags = ["-C", "link-arg=-Wl,-S,-x,-dead_strip"]
  7. [target.x86_64-apple-darwin]
  8. rustflags = ["-C", "link-arg=-Wl,-S,-x,-dead_strip"]
  9. [target.aarch64-unknown-linux-musl]
  10. rustflags = ["-C", "link-arg=-s", "-C", "link-arg=-Wl,-z,relro,-z,now,-z,noexecstack", "-C", "target-feature=+crt-static"]
  11. [target.x86_64-unknown-linux-musl]
  12. rustflags = ["-C", "link-arg=-s", "-C", "link-arg=-Wl,-z,relro,-z,now,-z,noexecstack", "-C", "target-feature=+crt-static"]
  13. [target.aarch64-unknown-linux-gnu]
  14. rustflags = ["-C", "link-arg=-s"]
  15. [target.x86_64-unknown-linux-gnu]
  16. rustflags = ["-C", "link-arg=-s"]