Jeff Vander Stoep | 761577d | 2020-10-14 15:21:00 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | # NOTE: | ||||
4 | # This script is only used when you want to generate bindings yourself. | ||||
5 | # The generated bindings will overwrite grpc-sys/bindings/* | ||||
6 | |||||
7 | if [ "$ARCH" == "" ]; then | ||||
8 | ARCH=`uname -p` | ||||
9 | fi | ||||
10 | export UPDATE_BIND=1 | ||||
11 | cargo build -p grpcio-sys --target ${ARCH}-unknown-linux-gnu | ||||
12 | rustfmt grpc-sys/bindings/* | ||||
13 | if [ "$(uname -s)" == "Linux" ]; then | ||||
14 | sed -i '/pub type .*= ::std::os::raw::.*/d' grpc-sys/bindings/* | ||||
15 | fi |