adaptivegrain/build_release.sh

14 lines
690 B
Bash
Raw Normal View History

2020-04-13 13:10:23 +02:00
#!/bin/sh
# Set rustflags as empty to build for legacy hosts.
# I only build this for windows because Linux users on old machines can just compile their own binary
2020-04-13 13:10:23 +02:00
RUSTFLAGS="" cargo build --release --target=x86_64-pc-windows-gnu --locked
mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./adaptivegrain_rs-no-fma.dll
RUSTFLAGS="-C target-cpu=haswell" cargo build --release --locked
RUSTFLAGS="-C target-cpu=haswell" cargo build --release --target=x86_64-pc-windows-gnu --locked
2020-04-13 13:10:23 +02:00
mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./
mv target/release/libadaptivegrain_rs.so ./
2020-04-13 13:10:23 +02:00
strip libadaptivegrain_rs.so
strip adaptivegrain_rs.dll
strip adaptivegrain_rs-no-fma.dll