Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20160720-1' into staging
[qemu/ar7.git] / tests / docker / test-clang
blob60e4e976b32e878f693b6c2427543ac5148102eb
1 #!/bin/bash -e
3 # Compile and check with clang.
5 # Copyright (c) 2016 Red Hat Inc.
7 # Authors:
8 # Fam Zheng <famz@redhat.com>
10 # This work is licensed under the terms of the GNU GPL, version 2
11 # or (at your option) any later version. See the COPYING file in
12 # the top-level directory.
14 . common.rc
16 requires clang
18 OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang"
19 # -fsanitize=undefined is broken on Fedora 23, skip it for now
20 # See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
21 #OPTS="$OPTS --extra-cflags=-fsanitize=undefined \
22 #--extra-cflags=-fno-sanitize=float-divide-by-zero"
23 build_qemu $OPTS
24 make $MAKEFLAGS check