Skip to content

Commit

Permalink
fix: add ldflags for debug-local (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxb1226 committed Aug 15, 2023
1 parent 7384280 commit 0c63598
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -164,6 +164,7 @@ debug-local:
@for target in $(TARGETS); do \
CGO_ENABLED=$(CGO_ENABLED) go build \
-v -o $(DEBUG_DIR)/$${target} \
-ldflags="-X $(ROOT)/pkg/version.gitTag=$(GIT_LATEST_TAG)" \
-gcflags='all=-N -l' \
$(CMD_DIR)/$${target}; \
done
Expand Down

0 comments on commit 0c63598

Please sign in to comment.