Skip to content

Commit

Permalink
Automated rollback of commit a30b255.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 643407401
  • Loading branch information
mkruskal-google authored and copybara-github committed Jun 14, 2024
1 parent 071d535 commit 40ffd46
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
16 changes: 2 additions & 14 deletions editions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,6 @@ cc_library(
],
)

cc_proto_library(
name = "cpp_features_cc_proto",
testonly = True,
deps = ["//src/google/protobuf:cpp_features_proto"],
)

cc_proto_library(
name = "java_features_cc_proto",
testonly = True,
deps = ["//java/core:java_features_proto"],
)

cc_test(
name = "defaults_test",
srcs = ["defaults_test.cc"],
Expand All @@ -109,11 +97,11 @@ cc_test(
":test_defaults_future",
],
deps = [
":cpp_features_cc_proto",
":defaults_test_embedded",
":java_features_cc_proto",
"//:protobuf",
"//java/core:java_features_cc_proto",
"//src/google/protobuf",
"//src/google/protobuf:cpp_features_cc_proto",
"//src/google/protobuf:port",
"//src/google/protobuf:protobuf_lite",
"//src/google/protobuf:test_textproto",
Expand Down
6 changes: 6 additions & 0 deletions java/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ proto_library(
deps = ["//:descriptor_proto"],
)

cc_proto_library(
name = "java_features_cc_proto",
visibility = ["//editions:__pkg__"],
deps = [":java_features_proto"],
)

filegroup(
name = "java_features_proto_srcs",
srcs = ["src/main/resources/google/protobuf/java_features.proto"],
Expand Down
6 changes: 6 additions & 0 deletions src/google/protobuf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ proto_library(
deps = [":descriptor_proto"],
)

cc_proto_library(
name = "cpp_features_cc_proto",
visibility = ["//editions:__pkg__"],
deps = [":cpp_features_proto"],
)

################################################################################
# C++ Runtime Library
################################################################################
Expand Down
2 changes: 2 additions & 0 deletions src/google/protobuf/compiler/cpp/helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,8 @@ bool GetBootstrapBasename(const Options& options, absl::string_view basename,
"third_party/protobuf/descriptor"},
{"third_party/protobuf/cpp_features",
"third_party/protobuf/cpp_features"},
{"third_party/java/protobuf/java_features",
"third_party/java/protobuf/java_features_bootstrap"},
{"third_party/protobuf/compiler/plugin",
"third_party/protobuf/compiler/plugin"},
{"net/proto2/compiler/proto/profile",
Expand Down
1 change: 1 addition & 0 deletions src/google/protobuf/compiler/java/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ cc_library(
srcs = ["java_features.pb.cc"],
hdrs = ["java_features.pb.h"],
strip_include_prefix = "/src",
visibility = ["//editions:__pkg__"],
deps = [
"//src/google/protobuf",
"//src/google/protobuf:arena",
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <string>
#include <vector>

#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/compiler/java/java_features.pb.h"
#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/port.h"

Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/internal_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_INTERNAL_HELPERS_H__
#define GOOGLE_PROTOBUF_COMPILER_JAVA_INTERNAL_HELPERS_H__

#include "google/protobuf/compiler/java/generator.h"
#include "google/protobuf/compiler/java/java_features.pb.h"
#include "google/protobuf/compiler/java/generator.h"
#include "google/protobuf/compiler/java/names.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/descriptor.pb.h"
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/kotlin_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

#include <string>

#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/compiler/java/java_features.pb.h"
#include "google/protobuf/compiler/code_generator.h"
#include "google/protobuf/descriptor.pb.h"

// Must be included last.
Expand Down

0 comments on commit 40ffd46

Please sign in to comment.