Skip to content

Commit

Permalink
make "fast build" config 40% faster on mac (bevyengine#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashneverdawn authored and BimDav committed Aug 26, 2020
1 parent ea11e42 commit ba3ef1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .cargo/config_fast_builds
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ba3ef1e

Please sign in to comment.