# Rust (via rustup)curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh# Zig (download from https://ziglang.org/download/)# Or via package manager if available
This copies the binary to the directory of an existing ant installation, or falls back to ~/.ant/bin/. It also creates an antx symlink.Alternatively, copy the binary manually:
ASan builds are significantly slower than release builds. The debug flags are not required but can produce clearer stack traces when ASan detects an issue.
If you plan to frequently rebuild Ant, installing ccache can greatly reduce build times. The maid setup task configures ccache automatically.
Using both ccache and lld together provides the best rebuild performance. ccache caches compilation, while lld speeds up linking (which cannot be cached).
sudo apt install ccacheexport CC="ccache gcc" # add to your .profile
Using lld as the linker also speeds up link times:
export CC_LD="$(which ld64.lld)" # macOS with brew llvm# orexport CC_LD="$(which lld)" # Linux
LTO is enabled by default with 8 threads (b_lto=true, b_lto_threads=8). Disable it with -Db_lto=false for faster iteration during development.