From 6ae365e516f3caa68d1e49bc479800d867808628 Mon Sep 17 00:00:00 2001 From: Craig MacKenzie Date: Thu, 7 Jul 2022 08:15:52 -0400 Subject: [PATCH] Revert "Fix flags for dev build (#31955)" This reverts commit a7871690d2b1559c7dd06240cd23d94069d64d76. --- CHANGELOG-developer.next.asciidoc | 1 - dev-tools/mage/build.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG-developer.next.asciidoc b/CHANGELOG-developer.next.asciidoc index 896b44027ab..8852863ee98 100644 --- a/CHANGELOG-developer.next.asciidoc +++ b/CHANGELOG-developer.next.asciidoc @@ -75,7 +75,6 @@ The list below covers the major changes between 7.0.0-rc2 and main only. - Avoid panicking in `add_fields` processor when input event.Fields is a nil map. {pull}28219[28219] - Drop event batch when get HTTP status 413 from Elasticsearch to avoid infinite loop {issue}14350[14350] {pull}29368[29368] - Allow to use metricbeat for named mssql instances. {issue}24076[24076] {pull}30859[30859] -- Setting DEV=true when running `mage build` now correctly generates binaries without optimisations and with debug symbols {pull}31955[31955] ==== Added diff --git a/dev-tools/mage/build.go b/dev-tools/mage/build.go index 9eb27d061d2..0432b5b20d1 100644 --- a/dev-tools/mage/build.go +++ b/dev-tools/mage/build.go @@ -67,7 +67,7 @@ func DefaultBuildArgs() BuildArgs { if DevBuild { // Disable optimizations (-N) and inlining (-l) for debugging. - args.ExtraFlags = append(args.ExtraFlags, `-gcflags=all=-N -l`) + args.ExtraFlags = append(args.ExtraFlags, `-gcflags`, `"all=-N -l"`) } else { // Strip all debug symbols from binary (does not affect Go stack traces). args.LDFlags = append(args.LDFlags, "-s")