Skip to content

Building from source

Ricardo Fernández Serrata edited this page Oct 10, 2024 · 5 revisions
  1. Install clang, as it's required for mold (no need for gcc)
  2. Install the Rust toolchain.
  3. Install the mold linker.
  4. Clone this repository however you like. If you won't contribute PRs then you should only download the contents (exclude git history/log) as a GZipped TAR or as ZIP.
  5. cd into your local repo
  6. And finally, build for distribution, or install for the current machine (respectively):
cargo build --release
cargo install --path . --config 'build.rustflags="-C target-cpu=native"'
Clone this wiki locally