mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
We need to all all=-N -l because some objects are being optimzied away
Without all=-N -l, some objects are being optimized away and impossible to debug
This commit is contained in:
parent
bfe34ab224
commit
86cd654371
@ -809,7 +809,7 @@ kube::golang::build_binaries() {
|
||||
gogcflags="all=-trimpath=${trimroot} ${GOGCFLAGS:-}"
|
||||
if [[ "${DBG:-}" == 1 ]]; then
|
||||
# Debugging - disable optimizations and inlining and trimPath
|
||||
gogcflags="${GOGCFLAGS:-} -N -l"
|
||||
gogcflags="${GOGCFLAGS:-} all=-N -l"
|
||||
goasmflags=""
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user