diff --git a/Makefile b/Makefile index 39257eb82b..89a722011b 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ export GO111MODULE=on GithubTop=github.com -Version=v0.19.6 +Version=v0.19.6.1 CosmosSDK=v0.39.2 Tendermint=v0.33.9 Iavl=v0.14.3 @@ -53,7 +53,11 @@ ldflags = -X $(GithubTop)/cosmos/cosmos-sdk/version.Version=$(Version) \ -X $(GithubTop)/cosmos/cosmos-sdk/types.MILESTONE_MERCURY_HEIGHT=$(MercuryHeight) -BUILD_FLAGS := -ldflags '$(ldflags)' -gcflags "all=-N -l" +BUILD_FLAGS := -ldflags '$(ldflags)' + +ifeq ($(DEBUG),true) + BUILD_FLAGS += -gcflags "all=-N -l" +endif all: install