mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user