Skip to content

Commit 5f1fef3

Browse files
authored
Speed up fast compiles config (#433)
optionally make "fast build" config 40% faster on mac by removing some debug info
1 parent 5288ec9 commit 5f1fef3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.cargo/config_fast_builds

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]
1414

1515
[target.x86_64-pc-windows-msvc]
1616
linker = "rust-lld.exe"
17-
rustflags = ["-Zshare-generics=y"]
17+
rustflags = ["-Zshare-generics=y"]
18+
19+
# Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
20+
# In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
21+
#[profile.dev]
22+
#debug = 1

0 commit comments

Comments
 (0)