From ba3ef1ea677666e82a52da16486bfed63adbf1f4 Mon Sep 17 00:00:00 2001 From: Hugo Lindsay <8341280+ashneverdawn@users.noreply.github.com> Date: Sun, 23 Aug 2020 22:05:24 -0400 Subject: [PATCH] make "fast build" config 40% faster on mac (#312) --- .cargo/config_fast_builds | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.cargo/config_fast_builds b/.cargo/config_fast_builds index 71ae452ac4205d..98325718be7a16 100644 --- a/.cargo/config_fast_builds +++ b/.cargo/config_fast_builds @@ -7,8 +7,10 @@ linker = "/usr/bin/clang" rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"] +# NOTE: you must manually install https://github.com/michaeleisel/zld on mac. you can easily do this with the "brew" package manager: +# `brew install michaeleisel/zld/zld` [target.x86_64-apple-darwin] -rustflags = ["-Zshare-generics=y"] +rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/Cellar/zld/1.1.0/bin/zld", "-Zshare-generics=y"] [target.x86_64-pc-windows-msvc] linker = "rust-lld.exe"