Skip to content

Commit

Permalink
add lld/mold install instructions for Fedora Linux (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdm authored Oct 28, 2023
1 parent ee1a6ef commit 1f8ad4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/learn/book/getting-started/setup/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ 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`
* **Fedora**: `sudo dnf install lld`
* **Arch**: `sudo pacman -S lld`
* **Windows**: Ensure you have the latest [cargo-binutils](https://github.com/rust-embedded/cargo-binutils) as this lets commands like `cargo run` use the LLD linker automatically.

Expand All @@ -173,6 +174,7 @@ Bevy can be built just fine using default configuration on stable Rust. However
* **MacOS**: You can follow these [instructions](https://lld.llvm.org/MachO/index.html) to install lld manually or install llvm through brew which includes lld: `brew install llvm`
* **Alternative - mold linker**: mold is _up to 5× (five times!) faster_ than LLD, but with a few caveats like limited platform support and occasional stability issues. To install mold, find your OS below and run the given command:
* **Ubuntu**: `sudo apt-get install mold`
* **Fedora**: `sudo dnf install mold`
* **Arch**: `sudo pacman -S mold`
* **Windows**: mold does not yet support Windows. [See this tracking issue](https://github.com/rui314/mold/issues/190) for more information.
* **MacOS**: mold does not yet support MacOS. [See this tracking issue](https://github.com/rui314/mold/issues/189) for more information.
Expand Down

0 comments on commit 1f8ad4d

Please sign in to comment.