Skip to content

Commit

Permalink
Enable PGO
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Jul 7, 2023
1 parent a0e549a commit 75bb90c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build.coordinator:
build.worker:
mkdir -p bin/
CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} \
go build -buildmode=exe $(if $(GO_TAGS),-tags $(GO_TAGS),) \
go build -pgo=auto -buildmode=exe $(if $(GO_TAGS),-tags $(GO_TAGS),) \
-ldflags "-w -s -X 'main.Version=$(GIT_VERSION)'" $(EXT_WFLAGS) \
-o bin/ ./cmd/worker

Expand All @@ -40,7 +40,7 @@ dev.build: compile build
dev.build-local:
mkdir -p bin/
go build -o bin/ ./cmd/coordinator
CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} go build -o bin/ ./cmd/worker
CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} go build -pgo=auto -o bin/ ./cmd/worker

dev.run: dev.build-local
./bin/coordinator & ./bin/worker
Expand Down

0 comments on commit 75bb90c

Please sign in to comment.