Merge pull request #1987 from schomatis/revert-1937-add-native-build-i-option
Remove go build option '-i' for native builds
This commit is contained in:
		
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @@ -11,11 +11,9 @@ REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet | ||||
| ifneq "$(strip $(shell command -v go 2>/dev/null))" "" | ||||
| 	GOOS ?= $(shell go env GOOS) | ||||
| 	GOARCH ?= $(shell go env GOARCH) | ||||
| 	GOHOSTOS ?= $(shell go env GOHOSTOS) | ||||
| else | ||||
| 	GOOS ?= $$GOOS | ||||
| 	GOARCH ?= $$GOARCH | ||||
| 	GOHOSTOS ?= $$GOHOSTOS | ||||
| endif | ||||
|  | ||||
| WHALE = "🇩" | ||||
| @@ -53,14 +51,6 @@ GO_BUILD_FLAGS= | ||||
| #include platform specific makefile | ||||
| -include Makefile.$(GOOS) | ||||
|  | ||||
| # Add the "incremental" build option `-i` (installs the packages that are | ||||
| # dependencies of the target) to speed up future builds. Only for native builds, | ||||
| # otherwise it will try to install in the incorrect (not native) path and fail. | ||||
| # Note: this won't be necessary from 1.10 (https://tip.golang.org/doc/go1.10#build) | ||||
| ifeq ($(GOOS), $(GOHOSTOS)) | ||||
| 	GO_BUILD_FLAGS += -i | ||||
| endif | ||||
|  | ||||
| # Flags passed to `go test` | ||||
| TESTFLAGS ?= -v $(TESTFLAGS_RACE) | ||||
| TESTFLAGS_PARALLEL ?= 8 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Crosby
					Michael Crosby