Skip to content

Commit

Permalink
Fixed Windows incompatibility text
Browse files Browse the repository at this point in the history
Looks like on Windows dynamic linking works but only when deactivating Generic sharing (bevyengine/bevy#1126). This commit corrects the text.
  • Loading branch information
greyna authored Apr 24, 2022
1 parent b974e26 commit 95c1181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/learn/book/getting-started/setup/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resolver = "2" # Important! wgpu/Bevy needs this!

Bevy can be built just fine using default configuration on stable Rust. However for maximally fast iterative compiles, we recommend the following configuration:

* **Enable Bevy's Dynamic Linking Feature**: This is the most impactful compilation time decrease! If `bevy` is a dependency you can compile the binary with the "dynamic" feature flag (enables dynamic linking). Note that right now, this doesn't work on Windows.
* **Enable Bevy's Dynamic Linking Feature**: This is the most impactful compilation time decrease! If `bevy` is a dependency you can compile the binary with the "dynamic" feature flag (enables dynamic linking).
```sh
cargo run --features bevy/dynamic
```
Expand Down Expand Up @@ -124,7 +124,7 @@ Bevy can be built just fine using default configuration on stable Rust. However
channel = "nightly"
```
For more information, see [The rustup book: Overrides](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file).
* **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.
* **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. Note that right now, this doesn't work on Windows.
To enable fast compiles, install the nightly rust compiler and LLD. Then copy the contents of [this file](https://github.com/bevyengine/bevy/blob/main/.cargo/config_fast_builds) to `YOUR_WORKSPACE/.cargo/config.toml`. For the project in this guide, that would be `my_bevy_game/.cargo/config.toml`.
Expand Down

0 comments on commit 95c1181

Please sign in to comment.