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
3 changed files with 28 additions and 4 deletions

View File

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