Skip to content

Commit

Permalink
Speed up fast compiles config (#433)
Browse files Browse the repository at this point in the history
optionally make "fast build" config 40% faster on mac by removing some debug info
  • Loading branch information
ashneverdawn authored Sep 4, 2020
1 parent 5288ec9 commit 5f1fef3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .cargo/config_fast_builds
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]

[target.x86_64-pc-windows-msvc]
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

0 comments on commit 5f1fef3

Please sign in to comment.