Skip to content

Commit

Permalink
make RUSTFLAGS configurable (#585)
Browse files Browse the repository at this point in the history
* configurable RUSTFLAGS
  • Loading branch information
XorSum authored Sep 24, 2024
1 parent cd28694 commit a3073c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ if [ "$new_checksum" != "$old_checksum" ]; then
cargo fmt --all -q --

echo "Building native with [$profile] profile..."
RUSTFLAGS='-C target-cpu=native' cargo build --profile="$profile" --verbose --locked --frozen
export RUSTFLAGS=${RUSTFLAGS:-"-C target-cpu=native"}
cargo build --profile="$profile" --verbose --locked --frozen
else
echo "native-engine source code and built libraries not modified, no need to rebuild"
fi
Expand Down

0 comments on commit a3073c9

Please sign in to comment.