How to update the binaries other than protoc-linux-x86_64.exe
and protoc-linux-arm32.exe
:
i in *.exe; do mv $i $(echo $i | sed s/3.0.0-beta-2-//); done
chmod +x *.exe
The 64-bit Linux version of the proto compiler is linked statically. To update it, do the following steps on an x86_64 machine:
git clone http://github.com/google/protobuf.git
git checkout <commithash>
(current is d5fb408d
or 3.0.0-beta-2
)./autogen.sh
LDFLAGS=-static ./configure
LDFLAGS = -static
to LDFLAGS = -all-static
in src/Makefile
.make
cp src/protoc <Bazel tree>/third_party/protobuf/protoc-linux-x86_64.exe
.How to update the src/
directory:
git clone http://github.com/google/protobuf.git
git checkout <commithash>
(current is d5fb408d
or 3.0.0-beta-2
)mkdir -p third_party/protobuf/src/google
in the root of the Bazel tree.cp -R <root of protobuf tree>/src/google/protobuf third_party/protobuf/src/google
third_party/protobuf/BUILD
with the rules in the protobuf repository.