Skip to content

Commit 6e3f317

Browse files
atulpatel261194Dimitrios MarkouvenkyvspInbanoth
authored andcommitted
fix(build): build support for arm
Signed-off-by: Atul Patel <[email protected]> Co-authored-by: Dimitrios Markou <[email protected]> Co-authored-by: Venkatesh Vemula <[email protected]> Co-authored-by: Banoth Saikumar <[email protected]>
1 parent 14d8df1 commit 6e3f317

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ PROJECTNAME=$(shell basename "$(PWD)")
77
# Make is verbose in Linux. Make it silent.
88
MAKEFLAGS += --silent
99

10+
GOARCH ?= $(shell go env GOARCH) # detect automatically the underlying arch
11+
1012
go-compile: go-get go-build
1113

1214
tools:
@@ -25,7 +27,7 @@ tools:
2527

2628
go-build:
2729
@echo " > Building binaries..."
28-
@CGO_ENABLED=0 go build -o ${PROJECTNAME} .
30+
@CGO_ENABLED=0 GOARCH=$(GOARCH) go build -o ${PROJECTNAME} .
2931

3032
go-get:
3133
@echo " > Checking if there are any missing dependencies..."

0 commit comments

Comments
 (0)