config.toml 1.1 KB

12345678910111213141516171819202122
  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 (as well as "-Csplit-debuginfo=unpacked" when building on macOS).
  4. [target.x86_64-unknown-linux-gnu]
  5. linker = "/usr/bin/clang"
  6. rustflags = ["-Clink-arg=-fuse-ld=lld"] #, "-Zshare-generics=y"]
  7. # NOTE: you must manually install https://github.com/michaeleisel/zld on mac. you can easily do this with the "brew" package manager:
  8. # `brew install michaeleisel/zld/zld`
  9. [target.x86_64-apple-darwin]
  10. rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]
  11. [target.x86_64-pc-windows-msvc]
  12. linker = "rust-lld.exe"
  13. rustflags = ["-Zshare-generics=y"]
  14. # Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
  15. # In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
  16. #[profile.dev]
  17. #debug = 1