mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +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:-}"
|
gogcflags="all=-trimpath=${trimroot} ${GOGCFLAGS:-}"
|
||||||
if [[ "${DBG:-}" == 1 ]]; then
|
if [[ "${DBG:-}" == 1 ]]; then
|
||||||
# Debugging - disable optimizations and inlining and trimPath
|
# Debugging - disable optimizations and inlining and trimPath
|
||||||
gogcflags="${GOGCFLAGS:-} -N -l"
|
gogcflags="${GOGCFLAGS:-} all=-N -l"
|
||||||
goasmflags=""
|
goasmflags=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user