Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Remove debug info from final binary (#1330)
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <[email protected]>

Signed-off-by: Francesco Ilario <[email protected]>
  • Loading branch information
filariow authored Dec 24, 2022
1 parent 49afef3 commit 9f7f791
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ OPERATOR_INDEX_YAML ?= $(OPERATOR_INDEX_DIR)/index.yaml

OPM_RENDER_OPTS :=

GO_BUILD_FLAGS ?= -ldflags="-s -w" -trimpath

.PHONY: build
## Build operator binary
build:
$(GO) build -o bin/manager main.go
$(GO) build $(GO_BUILD_FLAGS) -o bin/manager main.go

.PHONY: manifests
## Generate manifests e.g. CRD, RBAC etc.
Expand Down

0 comments on commit 9f7f791

Please sign in to comment.