docs: use `DBG` instead of `GOGCFLAGS` to build in debug mode

This commit is contained in:
Sreekaran Srinath 2022-10-06 15:01:27 -07:00 committed by Sreekaran
parent b3fc4bf4a7
commit de402df2d2
1 changed files with 2 additions and 2 deletions

View File

@ -357,10 +357,10 @@ The Kubernetes build system defaults to limiting the number of reported Go compi
make WHAT="cmd/kubectl" GOGCFLAGS="-e"
```
If you need to use debugging inspection tools on your compiled Kubernetes executables, add `-N -l` to `GOGCFLAGS`. For example:
If you need to use debugging inspection tools on your compiled Kubernetes executables, set DBG=1. For example:
```sh
make WHAT="cmd/kubectl" GOGCFLAGS="-N -l"
make WHAT="cmd/kubectl" DBG=1
```
To cross-compile Kubernetes for all platforms, run the following command: