From 0fe0a588dc6861815f6f43cf9052fc0e979042bb Mon Sep 17 00:00:00 2001 From: Inteon <42113979+inteon@users.noreply.github.com> Date: Thu, 1 Jul 2021 13:57:28 +0200 Subject: [PATCH] add -s and -w flags to the go_binary linkopts Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com> --- build/go_binary.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/build/go_binary.bzl b/build/go_binary.bzl index f9a8727b6..762498a66 100644 --- a/build/go_binary.bzl +++ b/build/go_binary.bzl @@ -19,5 +19,6 @@ def go_binary(name, **kwargs): real_go_binary( name = name, x_defs = version_x_defs(), + gc_linkopts = ["-s", "-w"], **kwargs, )