From e69918cf85e0a572354871451b900cb569e6ac53 Mon Sep 17 00:00:00 2001 From: Nicholas Rishel Date: Wed, 12 Aug 2020 17:09:25 -0700 Subject: [PATCH] Update documentation to reflect the Windows cargo config uses the Rust bundled rust-lld. Add mention of `cargo +nightly ...`. --- content/learn/book/getting-started/setup/_index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/learn/book/getting-started/setup/_index.md b/content/learn/book/getting-started/setup/_index.md index 8ac0a55027..beb58be3ca 100644 --- a/content/learn/book/getting-started/setup/_index.md +++ b/content/learn/book/getting-started/setup/_index.md @@ -71,13 +71,14 @@ Bevy can be built just fine using default configuration on stable Rust. However * **LLD linker**: The Rust compiler spends a lot of time in the "link" step. LLD is _much faster_ at linking than the default Rust linker. To install LLD, find your OS below and run the given command: * **Ubuntu**: `sudo apt-get install lld` * **Arch**: `sudo pacman -S lld` - * **Windows**: `scoop install llvm` (using [scoop](https://scoop.sh/) package manager) + * **Windows**: Go to next step, Bevy's cargo config uses the Rust bundled lld * **MacOS**: Sorry MacOS users ... modern LLD does not support MacOS. They are working on a rewrite, but it will take time. Fortunately Bevy will soon support dynamic linking of App Plugins, which will give massive iterative compile speedups and make LLD less necessary. * **Nightly Rust Compiler**: This gives access to the latest performance improvements and "unstable" optimizations ``` rustup toolchain install nightly rustup default nightly ``` + * You can use `cargo +nightly ...` if you don't want to change the default to nightly. * You can always switch back to stable by running: ```rustup default stable```. * **Generic Sharing**: Allows crates to share monomorphized generic code instead of duplicating it. In some cases this allows us to "precompile" generic code so it doesn't affect iterative compiles. This is only available on nightly Rust.