You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.5 KiB
TOML
33 lines
1.5 KiB
TOML
# Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below.
|
|
|
|
# NOTE: For maximum performance, build using a nightly compiler
|
|
# If you are using rust stable, remove the "-Zshare-generics=y" below.
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
linker = "clang"
|
|
rustflags = [
|
|
"-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
|
|
"-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads.
|
|
]
|
|
|
|
# NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
|
|
# `brew install llvm`
|
|
[target.x86_64-apple-darwin]
|
|
rustflags = [
|
|
"-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
|
|
"-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads.
|
|
]
|
|
|
|
[target.aarch64-apple-darwin]
|
|
rustflags = [
|
|
"-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
|
|
"-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads.
|
|
]
|
|
|
|
[target.x86_64-pc-windows-msvc]
|
|
linker = "rust-lld.exe" # Use LLD Linker
|
|
rustflags = [
|
|
"-Zshare-generics=n",
|
|
"-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads.
|
|
]
|