2020-06-08 06:35:40 +00:00
|
|
|
# Rename this file to `config` to enable "fast build" configuration. Please read the notes below.
|
|
|
|
|
|
|
|
# NOTE: For maximum performance, build using a nightly compiler
|
2020-06-08 17:08:36 +00:00
|
|
|
# If you are using rust stable, remove the "-Zshare-generics=y" below.
|
2020-06-08 06:35:40 +00:00
|
|
|
|
2020-01-21 11:11:16 +00:00
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
|
|
linker = "/usr/bin/clang"
|
2020-06-01 06:18:24 +00:00
|
|
|
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
|
|
|
|
|
2020-06-08 06:35:40 +00:00
|
|
|
[target.x86_64-apple-darwin]
|
|
|
|
linker = "/usr/bin/clang"
|
|
|
|
rustflags = ["-Zshare-generics=y"]
|
|
|
|
|
2020-06-01 06:18:24 +00:00
|
|
|
# NOTE: you must manually install lld on windows. you can easily do this with the "scoop" package manager:
|
|
|
|
# `scoop install llvm`
|
|
|
|
[target.x86_64-pc-windows-msvc]
|
|
|
|
linker = "lld-link.exe"
|
|
|
|
rustflags = ["-Clinker=lld", "-Zshare-generics=y"]
|