config.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [target."x86_64-unknown-linux-gnu"]
  2. # Compressing debug information can yield hundreds of megabytes of savings.
  3. # The Rust toolchain does not currently perform dead code elimination on
  4. # debug info.
  5. #
  6. # See: https://github.com/rust-lang/rust/issues/56068
  7. # See: https://reviews.llvm.org/D74169#1990180
  8. #
  9. # As of Jan 2024 all of the x86-64 hardware we run on supports the V3 micro architecture.
  10. #
  11. # See: https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels
  12. #
  13. # Sync: This target-cpu and list of features should be kept in sync with the ones in ci-builder and
  14. # xcompile.
  15. rustflags = [
  16. "-Clink-arg=-Wl,--compress-debug-sections=zlib",
  17. "-Clink-arg=-Wl,-O3",
  18. "-Clink-arg=-fuse-ld=lld",
  19. "-Csymbol-mangling-version=v0",
  20. "--cfg=tokio_unstable",
  21. ]
  22. # As of Jan 2024 all of the Linux based aarch64 hardware we run on supports the Neoverse N1 micro
  23. # architecture.
  24. #
  25. # See: https://en.wikipedia.org/wiki/AWS_Graviton#Graviton2
  26. # See: https://github.com/aws/aws-graviton-getting-started/blob/2e6293f27f19df560c12c6d526b78c3384513f99/rust.md
  27. #
  28. # Sync: This target-cpu and list of features should be kept in sync with the ones in ci-builder and
  29. # xcompile.
  30. [target."aarch64-unknown-linux-gnu"]
  31. rustflags = [
  32. "-Clink-arg=-Wl,--compress-debug-sections=zlib",
  33. "-Clink-arg=-Wl,-O3",
  34. "-Clink-arg=-fuse-ld=lld",
  35. "-Csymbol-mangling-version=v0",
  36. "--cfg=tokio_unstable",
  37. ]
  38. [build]
  39. # Always reserve at least one core so Cargo doesn't pin our CPU
  40. jobs = -1
  41. rustflags = ["--cfg=tokio_unstable"]