From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQz2c-0002VV-Gq for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:08:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQz2Y-00087K-LO for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:08:22 -0500 Received: from smtp.mail.uni-mannheim.de ([134.155.96.80]:44292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQz2Y-00086z-FK for qemu-devel@nongnu.org; Wed, 03 Feb 2016 10:08:18 -0500 References: <1454510164-6278-1-git-send-email-famz@redhat.com> <1454510164-6278-4-git-send-email-famz@redhat.com> From: Stefan Weil Message-ID: <56B217E4.2070603@weilnetz.de> Date: Wed, 3 Feb 2016 16:08:20 +0100 MIME-Version: 1.0 In-Reply-To: <1454510164-6278-4-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 3/4] tests: Add mingw 32/64 cross compiling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, jsnow@redhat.com, stefanha@redhat.com, Paolo Bonzini , =?UTF-8?Q?Alex_Benn=c3=a9e?= , david@gibson.dropbear.id.au Am 03.02.2016 um 15:36 schrieb Fam Zheng: > Only fedora22 has the required toolchain so it's not run elsewhere. > > Signed-off-by: Fam Zheng > --- > tests/docker/mingw.sh | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100755 tests/docker/mingw.sh > > diff --git a/tests/docker/mingw.sh b/tests/docker/mingw.sh > new file mode 100755 > index 0000000..0f103cd > --- /dev/null > +++ b/tests/docker/mingw.sh > @@ -0,0 +1,14 @@ > +#!/bin/bash > + > +if [ "$IMAGE_TAG" != "fedora22" ]; then > + echo "Mingw test skipped" > + exit 0 > +fi > + > +cd $(mktemp -d) > +for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do > + $QEMU_SRC/configuire --cross-prefix=$prefix \ configure? > + --target-list=x86_64-softmmu,aarch64-softmmu > + make $MAKEFLAGS > +done > + I suggest to add a trace backend as well (my tests run with --enable-trace-backend=stderr, so maybe you want to choose a different one). Another useful option for configure is --enable-debug. The compilation will be much faster and detect nearly the same kind of problems as the standard compilation (use of uninitialized variables won't be detected). Regards, Stefan