From 5f1fef333cfddde1d4dbbc223338f7ea0edc0875 Mon Sep 17 00:00:00 2001 From: Hugo Lindsay <8341280+ashneverdawn@users.noreply.github.com> Date: Fri, 4 Sep 2020 17:09:20 -0400 Subject: [PATCH] Speed up fast compiles config (#433) optionally make "fast build" config 40% faster on mac by removing some debug info --- .cargo/config_fast_builds | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.cargo/config_fast_builds b/.cargo/config_fast_builds index bf2a615a31fda..12d12048a83d6 100644 --- a/.cargo/config_fast_builds +++ b/.cargo/config_fast_builds @@ -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"] \ No newline at end of file +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 \ No newline at end of file