From 117b8a45164bdb5ad2ab9e6809cbc923cffa338e Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Wed, 17 Apr 2019 15:19:26 +0100 Subject: [PATCH] all.sh: Require i686-w64-mingw32-gcc version >= 6 Require mingw gcc version 6 or greater in order to ensure BCryptGenRandom() is available. --- tests/scripts/all.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 999fe6e4b..369df1591 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1209,6 +1209,12 @@ component_build_mingw () { make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar LD=i686-w64-minggw32-ld CFLAGS='-Werror -Wall -Wextra' WINDOWS_BUILD=1 SHARED=1 tests make WINDOWS_BUILD=1 clean } +support_build_mingw() { + case $(i686-w64-mingw32-gcc -dumpversion) in + [0-5]*) false;; + *) true;; + esac +} component_test_memsan () { msg "build: MSan (clang)" # ~ 1 min 20s