aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Olivier Chafik <ochafik@users.noreply.github.com>2017-11-29 07:34:49 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-29 07:36:44 -0800
commit98be14f08b6811ca74ca3a01e204e3b9e9cb1a3b (patch)
tree83fe1e4c7c94ce5b3139b7178deb9a499bbb2a11 /scripts
parentf358943e39e9ce4b5b46c99b45e8b2cc6914f901 (diff)
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap/compile.sh4
1 files changed, 3 insertions, 1 deletions
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-}" \