From 12031e4e9a1f46ae41d936e2f1a5261a95cb85f8 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 18 Dec 2024 09:38:35 +0900 Subject: [PATCH] Move ARCH check --- scripts/test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/test b/scripts/test index e3044b06da..1fb02ebaf9 100755 --- a/scripts/test +++ b/scripts/test @@ -2,6 +2,10 @@ set -e set -x +if [ "$ARCH" = "" ]; then + ARCH=`uname -m` +fi + if [ "$ARCH" = "mingw32" -o "$ARCH" = "mingw64" -o "$ARCH" = "arm32" ]; then unset CC fi @@ -18,10 +22,6 @@ fi VERSION=`cat VERSION` -if [ "$ARCH" = "" ]; then - ARCH=`uname -m` -fi - # test macOS if [ `uname` = "Darwin" ]; then # test autotools