dns-bench/build_hr.sh

30 lines
435 B
Bash
Raw Normal View History

2024-12-20 10:15:17 +04:00
#!/bin/bash
source .build.sh
2024-12-20 10:15:17 +04:00
echo
echo '==> Checking deps'
which git
which cargo
echo
echo '==> Cloning repo'
clone https://github.com/hickory-dns/hickory-dns.git hickory-dns
cd hickory-dns
trap 'cd ..' EXIT
2024-12-20 19:25:20 +04:00
set_cflags
2024-12-20 10:15:17 +04:00
echo
echo '==> Building resolve'
cargo build \
--release \
--bin resolve \
--features dnssec-ring \
--config 'panic="abort"' \
--config 'lto="fat"' \
--config 'codegen-units=1'
2024-12-20 10:15:17 +04:00
echo
echo '==> Done'