From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5y3V-0007s2-0j for qemu-devel@nongnu.org; Thu, 26 May 2016 12:22:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5y3R-00080T-RB for qemu-devel@nongnu.org; Thu, 26 May 2016 12:22:40 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:36786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5y3R-00080P-KM for qemu-devel@nongnu.org; Thu, 26 May 2016 12:22:37 -0400 Received: by mail-wm0-x22e.google.com with SMTP id n129so235088384wmn.1 for ; Thu, 26 May 2016 09:22:37 -0700 (PDT) References: <1463986466-764-1-git-send-email-famz@redhat.com> <1463986466-764-10-git-send-email-famz@redhat.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1463986466-764-10-git-send-email-famz@redhat.com> Date: Thu, 26 May 2016 17:23:15 +0100 Message-ID: <87fut4dc0c.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v5 09/14] docker: Add clang test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org Fam Zheng writes: > The (currently partially commented out) configure options are suggested > by John Snow . > > Signed-off-by: Fam Zheng Reviewed-by: Alex Bennée > --- > tests/docker/test-clang | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100755 tests/docker/test-clang > > diff --git a/tests/docker/test-clang b/tests/docker/test-clang > new file mode 100755 > index 0000000..6745dbe > --- /dev/null > +++ b/tests/docker/test-clang > @@ -0,0 +1,26 @@ > +#!/bin/bash -e > +# > +# Compile and check with clang. > +# > +# Copyright (c) 2016 Red Hat Inc. > +# > +# Authors: > +# Fam Zheng > +# > +# This work is licensed under the terms of the GNU GPL, version 2 > +# or (at your option) any later version. See the COPYING file in > +# the top-level directory. > + > +. common.rc > + > +requires clang > + > +OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang" > +# -fsanitize=undefined is broken on Fedora 23, skip it for now > +# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834 > +#OPTS="$OPTS --extra-cflags=-fsanitize=undefined \ > + #--extra-cflags=-fno-sanitize=float-divide-by-zero" > +DEF_TARGET_LIST="$(echo {x86_64,aarch64}-softmmu)" > +TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \ > +build_qemu $OPTS > +make $MAKEFLAGS check -- Alex Bennée