From b06c4ae50a2b80cd346d0400ae278a37ee9cc760 Mon Sep 17 00:00:00 2001 From: Peter Ebden Date: Mon, 9 Sep 2024 10:17:42 +0100 Subject: [PATCH] Coverage mode shouldn't strip --- build_defs/go.build_defs | 1 + 1 file changed, 1 insertion(+) diff --git a/build_defs/go.build_defs b/build_defs/go.build_defs index 83e4eb1..6fe2594 100644 --- a/build_defs/go.build_defs +++ b/build_defs/go.build_defs @@ -1707,6 +1707,7 @@ def _go_binary_cmds(name, static=False, ldflags='', pkg_config='', definitions=N cmds = { 'dbg': f'{gen_import_cfg} && {_link_cmd} {flags} $SRCS', + 'cover': f'{gen_import_cfg} && {_link_cmd} {flags} $SRCS', 'opt': f'{gen_import_cfg} && {_link_cmd} {flags} {opt_strip} $SRCS', } if gcov and CONFIG.GO.CPP_COVERAGE: