aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazel
diff options
context:
space:
mode:
authorGravatar Ian Coolidge <icoolidge@google.com>2017-06-16 12:56:23 -0700
committerGravatar Ian Coolidge <icoolidge@google.com>2017-07-13 15:42:22 -0700
commit6b08cf4c81f93f31d31e6c36124c0aff7919b3e8 (patch)
treea56e6ad6822e0f46ee5bd2ac9674ed2917d7bfad /bazel
parent8ffb7c108024583f67b91023877edb537e0dd69e (diff)
Propagate alwayslink in the grpc_cc_library build rule template.
Diffstat (limited to 'bazel')
-rw-r--r--bazel/grpc_build_system.bzl6
1 files changed, 4 insertions, 2 deletions
diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl
index 8057f27a12..f793cae56d 100644
--- a/bazel/grpc_build_system.bzl
+++ b/bazel/grpc_build_system.bzl
@@ -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 = []):