mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #108603 from chendave/binary
Switch to use the DBG flag to build debug binaries
This commit is contained in:
commit
1a54b398f4
@ -80,11 +80,10 @@ 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 GOLDFLAGS=""
|
# make all DBG=1
|
||||||
# Note: Specify GOLDFLAGS as an empty string for building unstripped binaries, which allows
|
# Note: Specify DBG=1 for building unstripped binaries, which allows you to use code debugging
|
||||||
# you to use code debugging tools like delve. When GOLDFLAGS is unspecified, it defaults
|
# tools like delve. When DBG is unspecified, it defaults to "-s -w" which strips debug
|
||||||
# to "-s -w" which strips debug information. Other flags that can be used for GOLDFLAGS
|
# information.
|
||||||
# are documented at https://golang.org/cmd/link/
|
|
||||||
endef
|
endef
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
ifeq ($(PRINT_HELP),y)
|
ifeq ($(PRINT_HELP),y)
|
||||||
|
@ -45,7 +45,7 @@ GINKGO_TOLERATE_FLAKES=${GINKGO_TOLERATE_FLAKES:-n}
|
|||||||
# - `dlv exec` if set to "delve"
|
# - `dlv exec` if set to "delve"
|
||||||
# - `gdb` if set to "gdb"
|
# - `gdb` if set to "gdb"
|
||||||
# NOTE: for this to work the e2e.test binary has to be compiled with
|
# NOTE: for this to work the e2e.test binary has to be compiled with
|
||||||
# make WHAT=test/e2e/e2e.test GOGCFLAGS="all=-N -l" GOLDFLAGS=""
|
# make DBG=1 WHAT=test/e2e/e2e.test
|
||||||
E2E_TEST_DEBUG_TOOL=${E2E_TEST_DEBUG_TOOL:-}
|
E2E_TEST_DEBUG_TOOL=${E2E_TEST_DEBUG_TOOL:-}
|
||||||
|
|
||||||
: "${KUBECTL:="${KUBE_ROOT}/cluster/kubectl.sh"}"
|
: "${KUBECTL:="${KUBE_ROOT}/cluster/kubectl.sh"}"
|
||||||
|
Loading…
Reference in New Issue
Block a user