config.toml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below.
  2. # NOTE: For maximum performance, build using a nightly compiler
  3. # If you are using rust stable, remove the "-Zshare-generics=y" below.
  4. [target.x86_64-unknown-linux-gnu]
  5. linker = "clang"
  6. rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
  7. # NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
  8. # `brew install llvm`
  9. [target.x86_64-apple-darwin]
  10. rustflags = [
  11. "-C",
  12. "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
  13. "-Zshare-generics=y",
  14. ]
  15. [target.aarch64-apple-darwin]
  16. rustflags = [
  17. "-C",
  18. "link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
  19. "-Zshare-generics=y",
  20. ]
  21. [target.x86_64-pc-windows-msvc]
  22. linker = "rust-lld.exe"
  23. rustflags = ["-Zshare-generics=n"]
  24. # Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
  25. # In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
  26. #[profile.dev]
  27. #debug = 1