From 62faadd6a33c245bc25a3b4577e1f3211da48a94 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Fri, 19 Apr 2019 20:10:21 -0400 Subject: [PATCH] all.sh: unparallelize mingw tests Sometimes, when building the shared target with crypto submodule, one could get an "No rule to make target '../crypto/library/libmbedcrypto.so'" error. This is due to two reasons - building in parallel and (probably) an incomplete/incorrect list of dependencies for certain targets. The proposed solution is to disable parallel builds with crypto submodule for now. An issue has been raised here: https://github.com/ARMmbed/mbedtls/issues/2634 --- 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 afc3c9d97..11e2b2f41 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1149,10 +1149,10 @@ component_test_allow_sha1 () { component_build_mingw () { msg "build: Windows cross build - mingw64, make (Link Library)" # ~ 30s - make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar LD=i686-w64-minggw32-ld CFLAGS='-Werror -Wall -Wextra' WINDOWS_BUILD=1 lib programs + make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar LD=i686-w64-minggw32-ld CFLAGS='-Werror -Wall -Wextra' WINDOWS_BUILD=1 lib programs -j1 # note Make tests only builds the tests, but doesn't run them - make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar LD=i686-w64-minggw32-ld CFLAGS='-Werror' WINDOWS_BUILD=1 tests + make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar LD=i686-w64-minggw32-ld CFLAGS='-Werror' WINDOWS_BUILD=1 tests -j1 make WINDOWS_BUILD=1 clean msg "build: Windows cross build - mingw64, make (DLL)" # ~ 30s