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:
		
						commit
						15f6fa22c5
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue