Merge pull request #11519 from iancoolidge/devel-reflection

alwayslink=1 for reflection plugin
pull/11890/head
David G. Quintas 8 years ago committed by GitHub
commit 6bc22ff61d
  1. 1
      BUILD
  2. 6
      bazel/grpc_build_system.bzl

@ -1543,6 +1543,7 @@ grpc_cc_library(
":grpc++",
"//src/proto/grpc/reflection/v1alpha:reflection_proto",
],
alwayslink = 1,
)
grpc_cc_library(

@ -25,7 +25,8 @@
def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [],
external_deps = [], deps = [], standalone = False,
language = "C++", testonly = False, visibility = None):
language = "C++", testonly = False, visibility = None,
alwayslink = 0):
copts = []
if language.upper() == "C":
copts = ["-std=c99"]
@ -40,7 +41,8 @@ def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [],
linkopts = ["-pthread"],
includes = [
"include"
]
],
alwayslink = alwayslink,
)
def grpc_proto_plugin(name, srcs = [], deps = []):

Loading…
Cancel
Save