mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #77596 from YoubingLi/bugfix
Fixes 77527 - The usage about build unstripped binaries
This commit is contained in:
commit
bb8204ef79
@ -78,10 +78,11 @@ define ALL_HELP_INFO
|
|||||||
# make
|
# make
|
||||||
# make all
|
# make all
|
||||||
# make all WHAT=cmd/kubelet GOFLAGS=-v
|
# make all WHAT=cmd/kubelet GOFLAGS=-v
|
||||||
# make all GOGCFLAGS="-N -l"
|
# make all GOLDFLAGS=""
|
||||||
# Note: Use the -N -l options to disable compiler optimizations an inlining.
|
# Note: Specify GOLDFLAGS as an empty string for building unstripped binaries, which allows
|
||||||
# Using these build options allows you to subsequently use source
|
# you to use code debugging tools like delve. When GOLDFLAGS is unspecified, it defaults
|
||||||
# debugging tools like delve.
|
# to "-s -w" which strips debug information. Other flags that can be used for GOLDFLAGS
|
||||||
|
# are documented at https://golang.org/cmd/link/
|
||||||
endef
|
endef
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
ifeq ($(PRINT_HELP),y)
|
ifeq ($(PRINT_HELP),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user