Skip to content

Commit

Permalink
Use default GOOS and allow to specify GOOS on cmd-line
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Gainutdinov committed Nov 13, 2019
1 parent 3cd9504 commit 7f31020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ get:

build:
@echo :: building go binary $(VERSION)
CGO_ENABLED=0 GOOS=linux go build \
CGO_ENABLED=0 go build \
-ldflags "-X main.version=$(VERSION)" \
-gcflags "-trimpath $(GOPATH)/src"

Expand Down

0 comments on commit 7f31020

Please sign in to comment.