distant/BUILDING.md
2021-07-25 21:02:51 -05:00

364 B

Building from Source

Using Cargo

cargo build

Completely static binary

To compile a completely static binary (not linked to libc), we need to target musl using:

cargo build --target x86_64-unknown-linux-musl

At the moment, this is not possible to build on M1 Macs: https://github.com/FiloSottile/homebrew-musl-cross/issues/23