From 98be14f08b6811ca74ca3a01e204e3b9e9cb1a3b Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Wed, 29 Nov 2017 07:34:49 -0800 Subject: Add . to the bootstrap protoc include paths This fixes the following error I got when building from scratch on Raspbian: ``` src/main/protobuf/invocation_policy.proto: File not found. src/main/protobuf/command_line.proto: File not found. ``` Note: ``` protoc --version libprotoc 3.0.0 ``` Closes #4187. PiperOrigin-RevId: 177306773 --- scripts/bootstrap/compile.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh index cd05badbd3..e817b1908e 100755 --- a/scripts/bootstrap/compile.sh +++ b/scripts/bootstrap/compile.sh @@ -189,7 +189,9 @@ if [ -z "${BAZEL_SKIP_JAVA_COMPILATION}" ]; then log "Compiling Java stubs for protocol buffers..." for f in $PROTO_FILES ; do - run "${PROTOC}" -Isrc/main/protobuf/ \ + run "${PROTOC}" \ + -I. \ + -Isrc/main/protobuf/ \ -Isrc/main/java/com/google/devtools/build/lib/buildeventstream/proto/ \ --java_out=${OUTPUT_DIR}/src \ --plugin=protoc-gen-grpc="${GRPC_JAVA_PLUGIN-}" \ -- cgit v1.2.3