From d7a8bbd71012e092262478471f95434a35fa12b4 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 25 Mar 2024 16:32:01 -0400 Subject: [PATCH] chore: remove debug info in binary --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 94be716..612691e 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,10 @@ BUILD_DIR = ./build APPS := $(notdir $(wildcard ./cmd/*)) +FLAGS := "-s -w" all: - $(foreach APP,$(APPS), go build -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);) + $(foreach APP,$(APPS), go build -ldflags=$(FLAGS) -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);) clean: rm -rf $(BUILD_DIR)/*