Update release build script
Default binaries are now compiled for haswell or higher because using FMA instructions results in a noticeable performance gain.
This commit is contained in:
parent
1f3957f449
commit
9fa8270564
|
@ -1,10 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# set rustflags as empty to make sure we’re not building for march=native,
|
# Set rustflags as empty to build for legacy hosts.
|
||||||
# as these are public release builds
|
# I only build this for windows because Linux users on old machines can just compile their own binary
|
||||||
RUSTFLAGS="" cargo build --release --locked
|
|
||||||
RUSTFLAGS="" cargo build --release --target=x86_64-pc-windows-gnu --locked
|
RUSTFLAGS="" cargo build --release --target=x86_64-pc-windows-gnu --locked
|
||||||
mv target/release/libadaptivegrain_rs.so ./
|
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
|
||||||
mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./
|
mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./
|
||||||
|
mv target/release/libadaptivegrain_rs.so ./
|
||||||
strip libadaptivegrain_rs.so
|
strip libadaptivegrain_rs.so
|
||||||
strip adaptivegrain_rs.dll
|
strip adaptivegrain_rs.dll
|
||||||
|
strip adaptivegrain_rs-no-fma.dll
|
||||||
|
|
Loading…
Reference in New Issue