diff options
author | Carmi Grushko <carmi@google.com> | 2016-11-10 23:40:15 +0000 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2016-11-11 10:04:44 +0000 |
commit | 99b07bf813e5ffffe44181105e10ce203673f12b (patch) | |
tree | 0698f42e964466a9239ce1583b827ca6c3eb2b02 /scripts/bootstrap | |
parent | d053df56a57689066cc6695520fd5f52f1726cb6 (diff) |
When bootstrapping Bazel, use a proto-compiler from //third_party/protobuf/3.0.0/.
The issue is that the proto-compiler in third_party/protobuf/ (not 3.0.0/) is actually 3.0.0-beta4, which lacks support for proto maps.
This CL will be followed by the removal of the binaries in third_party/protobuf/.
This is a temporary workaround to allow me to submit code that uses proto maps.
--
MOS_MIGRATED_REVID=138815162
Diffstat (limited to 'scripts/bootstrap')
-rwxr-xr-x | scripts/bootstrap/compile.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index d897a4b7b3..0491d1c116 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh @@ -44,17 +44,17 @@ linux) JAVA_HOME="${JAVA_HOME:-$(readlink -f $(which javac) | sed 's_/bin/javac__')}" if [ "${MACHINE_IS_64BIT}" = 'yes' ]; then if [ "${MACHINE_IS_Z}" = 'yes' ]; then - PROTOC=${PROTOC:-third_party/protobuf/protoc-linux-s390x_64.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-linux-s390x_64.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-linux-s390x_64.exe} else - PROTOC=${PROTOC:-third_party/protobuf/protoc-linux-x86_64.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-linux-x86_64.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-linux-x86_64.exe} fi else if [ "${MACHINE_IS_ARM}" = 'yes' ]; then - PROTOC=${PROTOC:-third_party/protobuf/protoc-linux-arm32.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-linux-arm32.exe} else - PROTOC=${PROTOC:-third_party/protobuf/protoc-linux-x86_32.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-linux-x86_32.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-linux-x86_32.exe} fi fi @@ -66,7 +66,7 @@ freebsd) # Note: the linux protoc binary works on freebsd using linux emulation. # We choose the 32-bit version for maximum compatiblity since 64-bit # linux binaries are only supported in FreeBSD-11. - PROTOC=${PROTOC:-third_party/protobuf/protoc-linux-x86_32.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-linux-x86_32.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-linux-x86_32.exe} ;; @@ -76,10 +76,10 @@ darwin) || fail "Could not find JAVA_HOME, please ensure a JDK (version ${JAVA_VERSION}+) is installed." fi if [ "${MACHINE_IS_64BIT}" = 'yes' ]; then - PROTOC=${PROTOC:-third_party/protobuf/protoc-osx-x86_64.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-osx-x86_64.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-osx-x86_64.exe} else - PROTOC=${PROTOC:-third_party/protobuf/protoc-osx-x86_32.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-osx-x86_32.exe} fi ;; @@ -91,10 +91,10 @@ msys*|mingw*) JAVA_HOME="${JAVA_HOME:-$(ls -d /c/Program\ Files/Java/jdk* | sort | tail -n 1)}" # We do not use the JNI library on Windows. if [ "${MACHINE_IS_64BIT}" = 'yes' ]; then - PROTOC=${PROTOC:-third_party/protobuf/protoc-windows-x86_64.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-windows-x86_64.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-windows-x86_64.exe} else - PROTOC=${PROTOC:-third_party/protobuf/protoc-windows-x86_32.exe} + PROTOC=${PROTOC:-third_party/protobuf/3.0.0/protoc-3.0.0-windows-x86_32.exe} GRPC_JAVA_PLUGIN=${GRPC_JAVA_PLUGIN:-third_party/grpc/protoc-gen-grpc-java-0.15.0-windows-x86_32.exe} fi esac |