File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,14 @@ GOHOSTOS ?= $(shell go env GOHOSTOS)
59
59
60
60
# Install protoc and friends under tools/bin.
61
61
PROTOC_VERSION =21.5
62
+ PROTOC_URL =https://github.com/protocolbuffers/protobuf/releases/download/v
62
63
ifeq ($(GOHOSTARCH ) ,arm64)
63
64
PROTOC_ARCH =aarch_64
64
65
else ifeq ($(GOHOSTARCH),amd64)
65
66
PROTOC_ARCH =x86_64
67
+ else ifeq ($(GOHOSTARCH),loong64)
68
+ PROTOC_ARCH =loong64
69
+ PROTOC_URL =https://github.com/Loongson-Cloud-Community/protobuf/releases/download/v
66
70
else
67
71
PROTOC_ARCH =$(GOHOSTARCH )
68
72
endif
75
79
PROTOC_ZIP =protoc-$(PROTOC_VERSION ) -$(PROTOC_OS_ARCH ) .zip
76
80
tools/$(PROTOC_ZIP ) :
77
81
mkdir -p $(@D )
78
- curl -sfL https://github.com/protocolbuffers/protobuf/releases/download/v $(PROTOC_VERSION ) /$(PROTOC_ZIP ) -o $@
82
+ curl -sfL $( PROTOC_URL ) $(PROTOC_VERSION ) /$(PROTOC_ZIP ) -o $@
79
83
80
84
% /bin/protoc$(EXE ) % /include % /readme.txt : % /$(PROTOC_ZIP )
81
85
cd $* && unzip -q -o -DD $(<F )
You can’t perform that action at this time.
0 commit comments