From 5106fce6ca6db24d33cca59991dd2e46ad5c8e2e Mon Sep 17 00:00:00 2001 From: Gary Holtz Date: Thu, 30 Jan 2025 09:18:57 -0600 Subject: [PATCH] build: Improve file size by removing debug info --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9e867f61..2c4406e41 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ OS = $(shell uname | tr A-Z a-z) DEBUG ?= false export PATH := $(abspath bin/):${PATH} - # Build variables export CGO_ENABLED ?= 0 ifeq (${VERBOSE}, 1) @@ -47,6 +46,7 @@ endif GO_LDFLAGS := -X main.buildDate=$(BUILD_DATE) $(GO_LDFLAGS) GO_LDFLAGS := $(GO_LDFLAGS) -X main.version=$(GLAB_VERSION) +GO_LDFLAGS := $(GO_LDFLAGS) -w -s GOURL ?= gitlab.com/gitlab-org/cli BUILDLOC ?= ./bin/glab -- GitLab