]> Git Repo - qemu.git/blob - tests/docker/test-clang
docker: ubuntu: Update the package list before installing new ones
[qemu.git] / tests / docker / test-clang
1 #!/bin/bash -e
2 #
3 # Compile and check with clang.
4 #
5 # Copyright (c) 2016 Red Hat Inc.
6 #
7 # Authors:
8 #  Fam Zheng <[email protected]>
9 #
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.
13
14 . common.rc
15
16 requires clang
17
18 cd "$BUILD_DIR"
19
20 OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
21 # -fsanitize=undefined is broken on Fedora 23, skip it for now
22 # See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
23 #OPTS="$OPTS --extra-cflags=-fsanitize=undefined \
24     #--extra-cflags=-fno-sanitize=float-divide-by-zero"
25 build_qemu $OPTS
26 make $MAKEFLAGS check
27 install_qemu
This page took 0.026469 seconds and 4 git commands to generate.