Merge pull request #23948 from mohanli-ml/bazel-linkstatic

add features to grpc_cc_binary in bazel
pull/23993/head
mohanli-ml 4 years ago committed by GitHub
commit ab92d4b896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      bazel/grpc_build_system.bzl

@ -231,7 +231,7 @@ def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data
**args
)
def grpc_cc_binary(name, srcs = [], deps = [], external_deps = [], args = [], data = [], language = "C++", testonly = False, linkshared = False, linkopts = [], tags = []):
def grpc_cc_binary(name, srcs = [], deps = [], external_deps = [], args = [], data = [], language = "C++", testonly = False, linkshared = False, linkopts = [], tags = [], features = []):
copts = []
if language.upper() == "C":
copts = ["-std=c99"]
@ -246,6 +246,7 @@ def grpc_cc_binary(name, srcs = [], deps = [], external_deps = [], args = [], da
copts = copts,
linkopts = if_not_windows(["-pthread"]) + linkopts,
tags = tags,
features = features,
)
def grpc_generate_one_off_targets():

Loading…
Cancel
Save