From 1adb07781546553214de06bb6f3e0d4d22c6b59c Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Wed, 26 Feb 2020 10:39:27 -0800 Subject: [PATCH] Changed gen_upb_api.h to use root BUILD file --- tools/codegen/core/gen_upb_api.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/codegen/core/gen_upb_api.sh b/tools/codegen/core/gen_upb_api.sh index 9b21472089d..8dd57c4474d 100755 --- a/tools/codegen/core/gen_upb_api.sh +++ b/tools/codegen/core/gen_upb_api.sh @@ -27,15 +27,11 @@ else UPB_OUTPUT_DIR=$1 fi -pushd third_party/protobuf -$bazel build :protoc -PROTOC=$PWD/bazel-bin/protoc -popd +$bazel build @com_google_protobuf//:protoc +PROTOC=$PWD/bazel-bin/external/com_google_protobuf/protoc -pushd third_party/upb -$bazel build :protoc-gen-upb -UPB_PLUGIN=$PWD/bazel-bin/protoc-gen-upb -popd +$bazel build @upb//:protoc-gen-upb +UPB_PLUGIN=$PWD/bazel-bin/external/upb/protoc-gen-upb proto_files=( \ "envoy/annotations/deprecation.proto" \