From f2c81898b01028c5a1149aa2cc932c0da6925ed1 Mon Sep 17 00:00:00 2001 From: Jingyi Wei Date: Mon, 21 Oct 2019 12:29:14 -0400 Subject: [PATCH] Move alwayslink to lb_server_load_reporting_filter target. The static initialization is in this target. Otherwise ServerLoadReportingFilterStaticRegistrar does not run on startup. https://github.com/grpc/grpc/blob/aba7f7bd2b4dbace8a7e62d3bb10329cec03d5a3/src/core/ext/filters/load_reporting/server_load_reporting_filter.cc#L347 --- BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD b/BUILD index 026045f076b..96d36708e33 100644 --- a/BUILD +++ b/BUILD @@ -1392,6 +1392,7 @@ grpc_cc_library( "grpc++_base", "grpc_secure", ], + alwayslink = 1, ) grpc_cc_library( @@ -1438,7 +1439,6 @@ grpc_cc_library( "lb_server_load_reporting_filter", "lb_server_load_reporting_service_server_builder_plugin", ], - alwayslink = 1, ) grpc_cc_library(