mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #1775 from Mjoycarry/feature/dlv_debug
support remote debug component through delve if set DLV variable when…
This commit is contained in:
@@ -32,8 +32,11 @@ LDFLAGS := "-w \
|
||||
|
||||
|
||||
#####################################################
|
||||
|
||||
GO_BUILD_FLAGS:=-mod vendor -ldflags $(LDFLAGS)
|
||||
ifneq ($(DLV),)
|
||||
GO_BUILD_FLAGS += -gcflags "all=-N -l"
|
||||
LDFLAGS = ""
|
||||
endif
|
||||
GO_BUILD_FLAGS+=-mod vendor -ldflags $(LDFLAGS)
|
||||
GO_BUILD := go build $(GO_BUILD_FLAGS)
|
||||
GO_INSTALL := go install -ldflags $(LDFLAGS)
|
||||
GO_TEST := go test
|
||||
|
||||
Reference in New Issue
Block a user