From be76d374a502653e8931749a22ee532b690f85de Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 16 Mar 2024 17:41:41 -0600 Subject: [PATCH] chore: add nostrip compilr flag to attach debug symbols (#7759) * chore: add nostrip compilr flag to attach debug symbols * updates --- scripts/makefiles/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makefiles/build.mk b/scripts/makefiles/build.mk index eb83eb06d76..60a88bf00b8 100644 --- a/scripts/makefiles/build.mk +++ b/scripts/makefiles/build.mk @@ -48,7 +48,7 @@ build-dev-install: go.sum build-dev-build: mkdir -p $(BUILDDIR)/ - GOWORK=off go build $(GC_FLAGS) -mod=readonly -ldflags '$(DEBUG_LDFLAGS)' -trimpath -o $(BUILDDIR) ./...; + GOWORK=off go build $(GC_FLAGS) -mod=readonly -ldflags '$(DEBUG_LDFLAGS)' -gcflags "all=-N -l" -trimpath -o $(BUILDDIR) ./...; build-install-with-autocomplete: build-check-version go.sum GOWORK=off go install -mod=readonly $(BUILD_FLAGS) $(GO_MODULE)/cmd/osmosisd