Depend on upb_generator:mangle from rust compiler

Update cmake to include necessary upb_generator files and upb namespace.

PiperOrigin-RevId: 595144470
pull/15205/head
Kevin King 1 year ago committed by Copybara-Service
parent 3d9916caca
commit fa5f8fa7e8
  1. 2
      CMakeLists.txt
  2. 1
      src/google/protobuf/compiler/rust/BUILD.bazel
  3. 1
      src/libprotoc.map

@ -279,6 +279,8 @@ endif (MSVC)
include_directories( include_directories(
${ZLIB_INCLUDE_DIRECTORIES} ${ZLIB_INCLUDE_DIRECTORIES}
${protobuf_BINARY_DIR} ${protobuf_BINARY_DIR}
# Support #include-ing other top-level directories, i.e. upb_generator.
${protobuf_SOURCE_DIR}
${protobuf_SOURCE_DIR}/src) ${protobuf_SOURCE_DIR}/src)
set(protobuf_ABSL_PROVIDER "module" CACHE STRING "Provider of absl library") set(protobuf_ABSL_PROVIDER "module" CACHE STRING "Provider of absl library")

@ -44,6 +44,7 @@ cc_library(
":oneof", ":oneof",
"//src/google/protobuf:protobuf_nowkt", "//src/google/protobuf:protobuf_nowkt",
"//src/google/protobuf/compiler/cpp:names", "//src/google/protobuf/compiler/cpp:names",
"//upb_generator:mangle",
"@com_google_absl//absl/log:absl_check", "@com_google_absl//absl/log:absl_check",
"@com_google_absl//absl/log:absl_log", "@com_google_absl//absl/log:absl_log",
], ],

@ -3,6 +3,7 @@
extern "C++" { extern "C++" {
*google*; *google*;
pb::*; pb::*;
upb::*;
}; };
scc_info_*; scc_info_*;
descriptor_table_*; descriptor_table_*;

Loading…
Cancel
Save