From 280acb3401ebf085286730374b3d6c9a4fa29664 Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Mon, 5 Feb 2024 21:28:07 +0100 Subject: [PATCH] use INPUT_GOARCH --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d6d843b81..2bce78839 100644 --- a/Makefile +++ b/Makefile @@ -115,8 +115,9 @@ install-cross-build-tools: fi .PHONY: pre-build -pre-build: +pre-build: generate export CGO_FLAGS="-O2 -D__BLST_PORTABLE__" + export GOARCH=$(INPUT_GOARCH) if [ "$(GOARCH)" = "arm64" ] ; then \ export CC=aarch64-linux-gnu-gcc ; \ elif [ "$(GOARCH)" = "amd64" ] ; then \