-
Notifications
You must be signed in to change notification settings - Fork 104
Building from source
Ricardo Fernández Serrata edited this page Oct 10, 2024
·
5 revisions
- Install
clang
, as it's required formold
(no need forgcc
) - Install the Rust toolchain.
- Install the
mold
linker. - 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. -
cd
into your local repo - 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"'