commit | 13213419f6381625a9d41622b94a31a91c0fc9c0 | [log] [tgz] |
---|---|---|
author | Ian Coolidge <icoolidge@google.com> | Tue Jun 27 21:49:44 2017 -0700 |
committer | Ian Coolidge <icoolidge@google.com> | Thu Jul 13 15:42:22 2017 -0700 |
tree | 0df1e3ef5a7aec704466deb9d16b7d40defb1211 | |
parent | 6b08cf4c81f93f31d31e6c36124c0aff7919b3e8 [diff] [blame] |
alwayslink=1 for reflection plugin The reflection plugin uses a static initializer to enable itself, but no one depends on its symbols, so it gets optimized out. Set alwayslink in the reflection plugin to fix that.
diff --git a/BUILD b/BUILD index 26981ca..74d9a77 100644 --- a/BUILD +++ b/BUILD
@@ -1522,6 +1522,7 @@ ":grpc++", "//src/proto/grpc/reflection/v1alpha:reflection_proto", ], + alwayslink = 1, ) grpc_cc_library(