File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # set rustflags as empty to make sure we’re not building for march=native,
4- # as these are public release builds
5- RUSTFLAGS=" " cargo build --release --locked
3+ # Set rustflags as empty to build for legacy hosts.
4+ # I only build this for windows because Linux users on old machines can just compile their own binary
65RUSTFLAGS=" " cargo build --release --target=x86_64-pc-windows-gnu --locked
7- mv target/release/libadaptivegrain_rs.so ./
6+ mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./adaptivegrain_rs-no-fma.dll
7+ RUSTFLAGS=" -C target-cpu=haswell" cargo build --release --locked
8+ RUSTFLAGS=" -C target-cpu=haswell" cargo build --release --target=x86_64-pc-windows-gnu --locked
89mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./
10+ mv target/release/libadaptivegrain_rs.so ./
911strip libadaptivegrain_rs.so
1012strip adaptivegrain_rs.dll
13+ strip adaptivegrain_rs-no-fma.dll
You can’t perform that action at this time.
0 commit comments