From 51b5f00a4310d75b821a9deab62523c17a59a78b Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Fri, 24 Feb 2023 15:38:52 +0800 Subject: [PATCH] all.sh: Skip build_mingw correctly If i686-w64-mingw32-gcc is not installed, then build_mingw should be unsupported. Signed-off-by: Pengyu Lv --- tests/scripts/all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 7d91fa27d..58fa4bf60 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -3647,8 +3647,8 @@ component_build_mingw () { make WINDOWS_BUILD=1 clean } support_build_mingw() { - case $(i686-w64-mingw32-gcc -dumpversion) in - [0-5]*) false;; + case $(i686-w64-mingw32-gcc -dumpversion 2>/dev/null) in + [0-5]*|"") false;; *) true;; esac }