Skip to content

Commit

Permalink
Merge pull request #21092 from knz/20171228-fix-testlogic
Browse files Browse the repository at this point in the history
build: avoid building test bins with duplicate TAGS, GOFLAGS, LINKFLAGS
  • Loading branch information
knz authored Dec 29, 2017
2 parents a1a67b0 + ff42b3c commit b3a0e57
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 @@ -748,7 +748,7 @@ testrace: TESTTIMEOUT := $(RACETIMEOUT)
FIND_RELEVANT := find $(PKG_ROOT) -name node_modules -prune -o

pkg/%.test: main.go $(shell $(FIND_RELEVANT) ! -name 'zcgo_flags.go' -name '*.go')
$(MAKE) testbuild GOFLAGS='$(GOFLAGS)' TAGS='$(TAGS)' LINKFLAGS='$(LINKFLAGS)' PKG='./pkg/$(*D)'
$(MAKE) testbuild PKG='./pkg/$(*D)'

bench: ## Run benchmarks.
bench: TESTS := -
Expand Down

0 comments on commit b3a0e57

Please sign in to comment.