Skip to content

Commit

Permalink
Merge pull request #542 from pingcap/tennix/disable-cgo
Browse files Browse the repository at this point in the history
disable cgo
  • Loading branch information
ngaut authored Feb 25, 2017
2 parents 201fa24 + 4c38899 commit fa343ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GO=GO15VENDOREXPERIMENT="1" go
GO=GO15VENDOREXPERIMENT="1" CGO_ENABLED=0 go
GOTEST=GO15VENDOREXPERIMENT="1" CGO_ENABLED=1 go test # go race detector requires cgo

PACKAGES := $$(go list ./...| grep -vE 'vendor|pd-server')

Expand Down Expand Up @@ -38,7 +39,7 @@ install:

test:
rm -rf vendor && ln -s _vendor/vendor vendor
$(GO) test --race $(PACKAGES)
$(GOTEST) --race $(PACKAGES)
rm -rf vendor

check:
Expand Down

0 comments on commit fa343ba

Please sign in to comment.