Skip to content

Commit

Permalink
Do not force amd64 architecture (0xPolygonHermez#1416)
Browse files Browse the repository at this point in the history
* do not force amd64 architecture

* do not force amd64 architecture

* do not force amd64 architecture

* do not force amd64 architecture

* do not force amd64 architecture

* do not force amd64 architecture

* do not force amd64 architecture

* do not force amd64 architecture

* goos

* remove goos
  • Loading branch information
ToniRamirezM authored Nov 25, 2022
1 parent 438c7a7 commit 0942c10
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@ VERSION := $(shell git describe --tags --always)
COMMIT := $(shell git rev-parse --short HEAD)
DATE := $(shell date +%Y-%m-%dT%H:%M:%S%z)
LDFLAGS := -ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.date=$(DATE)"
ARCH := $(shell arch)

ifeq ($(ARCH),x86_64)
ARCH = amd64
else
ifeq ($(ARCH),aarch64)
ARCH = arm64
endif
endif

GOBASE := $(shell pwd)
GOBIN := $(GOBASE)/dist
GOENVVARS := GOBIN=$(GOBIN) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
GOENVVARS := GOBIN=$(GOBIN) CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH)
GOBINARY := zkevm-node
GOCMD := $(GOBASE)/cmd
$(eval BUILD_COMMIT:=$(shell git rev-parse --short HEAD))
Expand Down

0 comments on commit 0942c10

Please sign in to comment.