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

Remove debug info from final binary #1330

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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