Quellcode durchsuchen

Makefile: default GOARCH to the arch we are running on (#908)

blotus vor 3 Jahren
Ursprung
Commit
488f28e3a3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -29,7 +29,7 @@ CSCLI_BIN = "cscli"
 BUILD_CMD = "build"
 BUILD_CMD = "build"
 
 
 GOOS ?= linux
 GOOS ?= linux
-GOARCH ?= amd64
+GOARCH ?= $(shell go env GOARCH)
 
 
 #Golang version info
 #Golang version info
 GO_MAJOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1)
 GO_MAJOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1)