Skip to content

Commit ec509e1

Browse files
committed
TUN-6292: Debug builds for cloudflared
Allow for cloudflared to be built with debug mode to be used with dlv exec
1 parent 7bc2462 commit ec509e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ ifneq ($(GO_BUILD_TAGS),)
4040
GO_BUILD_TAGS := -tags "$(GO_BUILD_TAGS)"
4141
endif
4242

43+
ifeq ($(debug), 1)
44+
GO_BUILD_TAGS += -gcflags="all=-N -l"
45+
endif
46+
4347
IMPORT_PATH := github.com/cloudflare/cloudflared
4448
PACKAGE_DIR := $(CURDIR)/packaging
4549
PREFIX := /usr

0 commit comments

Comments
 (0)