Skip to content

Commit

Permalink
Improve the build of skywalking-rover
Browse files Browse the repository at this point in the history
  • Loading branch information
tsint committed Nov 27, 2024
1 parent 6997e66 commit db8faa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
BINARY = skywalking-rover

OUT_DIR = bin
GO_BUILD_FLAGS = -v
GO_BUILD_FLAGS = -buildvcs=false -v
GO_BUILD_LDFLAGS = -X main.version=$(VERSION)

PLATFORMS := linux
Expand All @@ -34,9 +34,9 @@ deps:
$(GO_GET) -v -t -d ./...

.PHONY: $(PLATFORMS)
$(PLATFORMS): deps
$(PLATFORMS): deps generate
mkdir -p $(OUT_DIR)
GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags "$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(BINARY)-$(VERSION)-$(os)-$(ARCH) ./cmd
CGO_ENABLED=0 GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags "$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(BINARY)-$(VERSION)-$(os)-$(ARCH) ./cmd

.PHONY: build
build: linux

0 comments on commit db8faa5

Please sign in to comment.