Makefile: Add a DBG flag to build debug binaries

Now `make DBG=1` will produce binaries with no optimizaions and no
inlining, but with symbols and DWARF information.
This commit is contained in:
Tim Hockin
2022-02-26 23:28:49 -08:00
parent 50e07c9a12
commit ed5e549cde
2 changed files with 33 additions and 22 deletions

View File

@@ -73,6 +73,8 @@ define ALL_HELP_INFO
# GOFLAGS: Extra flags to pass to 'go' when building.
# GOLDFLAGS: Extra linking flags passed to 'go' when building.
# GOGCFLAGS: Additional go compile flags passed to 'go' when building.
# DBG: If set to "1", build with optimizations disabled for easier
# debugging. Any other value is ignored.
#
# Example:
# make