Alanxtl commented on code in PR #157: URL: https://github.com/apache/dubbo-go-pixiu-samples/pull/157#discussion_r3295838897
########## igt/Makefile: ########## @@ -30,7 +30,12 @@ pixiuSources = $(wildcard $(PIXIU_DIR)/pixiu/*.go) export GO111MODULE ?= on export GOPROXY ?= https://goproxy.io,direct export GOSUMDB ?= sum.golang.org -export GOARCH ?= amd64 +NATIVE_ARCH := $(shell uname -m) +ifeq ($(NATIVE_ARCH), arm64) + export GOARCH ?= arm64 +else + export GOARCH ?= amd64 Review Comment: if else里面都是amd64 和硬编码有什么区别 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
