Skip to content

Commit

Permalink
use uname -m instead of uname -p (#593)
Browse files Browse the repository at this point in the history
`uname -p` is unportable on some platforms.

Signed-off-by: Yang Keao <keao.yang@yahoo.com>

Co-authored-by: Xinye Tao <xy.tao@outlook.com>
  • Loading branch information
YangKeao and tabokie committed Jan 5, 2021
1 parent 0f28843 commit dd50d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-bindings.sh
Expand Up @@ -6,7 +6,7 @@

export UPDATE_BIND=1
if [ "$ARCH" == "" ]; then
ARCH=`uname -p`
ARCH=`uname -m`
fi
cargo build --target ${ARCH}-unknown-linux-gnu
rustfmt librocksdb_sys/bindings/*

0 comments on commit dd50d92

Please sign in to comment.