Speed up fast compiles config (#433)

optionally make "fast build" config 40% faster on mac by removing some debug info
This commit is contained in:
Hugo Lindsay 2020-09-04 17:09:20 -04:00 committed by GitHub
parent 5288ec9859
commit 5f1fef333c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,3 +15,8 @@ rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]
[target.x86_64-pc-windows-msvc] [target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe" linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=y"] rustflags = ["-Zshare-generics=y"]
# Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
# In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
#[profile.dev]
#debug = 1