aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Dmitry Lomov <dslomov@google.com>2016-09-21 17:03:11 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-22 09:52:01 +0000
commite67731a2444b08e0b84284073b4f463b733062fd (patch)
treecc3768041a23b7c6ba3694455c4959377e5b7c7f /third_party/protobuf
parent35a1f8be335715e28441d340e147a8ed2821e397 (diff)
Update instructions on how to build protoc-mingw.exe.
-- MOS_MIGRATED_REVID=133842785
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/protobuf/README.md b/third_party/protobuf/README.md
index e37599c698..bf93a9893d 100644
--- a/third_party/protobuf/README.md
+++ b/third_party/protobuf/README.md
@@ -29,5 +29,15 @@ How to update `protobuf.bzl` and the `src/` directory:
4. Update rules in `third_party/protobuf/BUILD` with the rules in the protobuf repository.
5. Done.
+How to update `protoc-mingw.exe`:
+This is pretty much the same steps as for x86_64 above, but they need to be done
+from MingW shell on Windows machine ([https://sourceforge.net/projects/msys2/files/]).
+
+1. `git clone http://github.com/google/protobuf.git`
+2. `git checkout <commithash>` (current is `d5fb408d` or `3.0.0-beta-2`)
+3. `./autogen.sh`
+6. `make`
+7. `cp src/protoc.exe <Bazel tree>/third_party/protobuf/protoc-mingw.exe` .
+
How to update anything else in this directory: follow usual procedure as described on
https://www.bazel.io/contributing.html