# Pulled from https://github.com/bevyengine/bevy/blob/latest/.cargo/config_fast_builds.toml # 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 = [ "-Clink-arg=-fuse-ld=lld", # Use LLD Linker "-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-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. ] [target.wasm32-unknown-unknown] runner = "wasm-server-runner"