Merge pull request #28363 from mikebrow/enable-debug-build-options

Automatic merge from submit-queue

adds source debug build options

See issue & discussion here: #28227

Enables source debugging the Kubernetes binaries with tools like delve by providing the user with the ability to provide debug build options to the glang compiler.

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
k8s-merge-robot 2016-07-20 21:48:27 -07:00 committed by GitHub
commit 15f6fa22c5
1 changed files with 8 additions and 2 deletions

View File

@ -75,8 +75,14 @@ binaries):
make make
``` ```
You may pass build options and packages to the script as necessary. To build You may pass build options and packages to the script as necessary. For example,
binaries for all platforms: to build with optimizations disabled for enabling use of source debug tools:
```sh
make GOGCFLAGS="-N -l"
```
To build binaries for all platforms:
```sh ```sh
make cross make cross