Don't use -a on build (#646)
This lets us utilize the go build cache and significantly speeds up builds.
This commit is contained in:
2
Makefile
2
Makefile
@@ -36,7 +36,7 @@ build: build_tags := netgo osusergo
|
|||||||
build: OUTPUT_DIR ?= bin
|
build: OUTPUT_DIR ?= bin
|
||||||
build: authors
|
build: authors
|
||||||
@echo "Building..."
|
@echo "Building..."
|
||||||
$Q CGO_ENABLED=0 go build -a --tags '$(shell scripts/process_build_tags.sh $(build_tags) $(VK_BUILD_TAGS))' -ldflags '-extldflags "-static"' -o $(OUTPUT_DIR)/$(binary) $(if $V,-v) $(VERSION_FLAGS) ./cmd/$(binary)
|
$Q CGO_ENABLED=0 go build --tags '$(shell scripts/process_build_tags.sh $(build_tags) $(VK_BUILD_TAGS))' -ldflags '-extldflags "-static"' -o $(OUTPUT_DIR)/$(binary) $(if $V,-v) $(VERSION_FLAGS) ./cmd/$(binary)
|
||||||
|
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
Reference in New Issue
Block a user