Skip to content

Commit

Permalink
to variable CGO_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Oct 13, 2023
1 parent 6a61fb1 commit df45cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ TEST_OPTIONS?=

GOOS?=linux
GOARCH?=amd64
CGO_ENABLED?=0

default: build

setup:
go mod download

build:
env GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=1 go build -o warp ./cmd/warp/main.go
env GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=$(CGO_ENABLED) go build -o warp ./cmd/warp/main.go

run:
env GOOS=$(GOOS) GOARCH=$(GOARCH) go run ./cmd/warp/main.go
Expand Down

0 comments on commit df45cc1

Please sign in to comment.