Skip to content

Commit

Permalink
build: fix GOARCH for loongarch64 (Makefile)
Browse files Browse the repository at this point in the history
uname gives loongarch64 target value while go has
loong64 target instead. Without the fix `make
install` can't find correct executable since it
looks into bin/loongarch64 instead of bin/loong64
  • Loading branch information
k0tran committed Sep 13, 2024
1 parent 49f4cf2 commit a3ef7ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ifeq ($(GOARCH),x86_64)
GOARCH=amd64
else ifeq ($(GOARCH),aarch64)
GOARCH=arm64
else ifeq ($(GOARCH),loongarch64)
GOARCH=loong64
else ifeq ($(patsubst armv%,arm,$(GOARCH)),arm)
GOARCH=arm
else ifeq ($(patsubst i%86,386,$(GOARCH)),386)
Expand Down

0 comments on commit a3ef7ce

Please sign in to comment.