Skip to content

Commit

Permalink
Coverage mode shouldn't strip
Browse files Browse the repository at this point in the history
  • Loading branch information
peterebden committed Sep 9, 2024
1 parent 321f156 commit b06c4ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_defs/go.build_defs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b06c4ae

Please sign in to comment.