Skip to content

Latest commit

 

History

History
62 lines (22 loc) · 634 Bytes

compilation.md

File metadata and controls

62 lines (22 loc) · 634 Bytes

Compilation

Instruction on how to compile from source.

Building a portable binary that can be run on other computers with the same operating system

cargo b --release --features=fast

Building a non-portable binary that can only be run on the host used to compile (but give best performance)

On Linux

EXPORT RUSTFLAGS="-Ctarget-cpu=native"
cargo b --release --features=fast

On Windows

set RUSTFLAGS="-Ctarget-cpu=native"
cargo b --release --features=fast

Testing the binary

./target/release/odonata --perft 6


./target/release/odonata --search