xref: /openbmc/qemu/tests/docker/test-debug (revision 11545663)
1*11545663SMarc-André Lureau#!/bin/bash -e
2*11545663SMarc-André Lureau#
3*11545663SMarc-André Lureau# Compile and check with clang & --enable-debug.
4*11545663SMarc-André Lureau#
5*11545663SMarc-André Lureau# Copyright (c) 2016-2018 Red Hat Inc.
6*11545663SMarc-André Lureau#
7*11545663SMarc-André Lureau# Authors:
8*11545663SMarc-André Lureau#  Fam Zheng <famz@redhat.com>
9*11545663SMarc-André Lureau#  Marc-André Lureau <marcandre.lureau@redhat.com>
10*11545663SMarc-André Lureau#
11*11545663SMarc-André Lureau# This work is licensed under the terms of the GNU GPL, version 2
12*11545663SMarc-André Lureau# or (at your option) any later version. See the COPYING file in
13*11545663SMarc-André Lureau# the top-level directory.
14*11545663SMarc-André Lureau
15*11545663SMarc-André Lureau. common.rc
16*11545663SMarc-André Lureau
17*11545663SMarc-André Lureaurequires clang asan
18*11545663SMarc-André Lureau
19*11545663SMarc-André Lureaucd "$BUILD_DIR"
20*11545663SMarc-André Lureau
21*11545663SMarc-André LureauOPTS="--cxx=clang++ --cc=clang --host-cc=clang"
22*11545663SMarc-André LureauOPTS="--enable-debug $OPTS"
23*11545663SMarc-André Lureau
24*11545663SMarc-André Lureaubuild_qemu $OPTS
25*11545663SMarc-André Lureaumake $MAKEFLAGS check
26*11545663SMarc-André Lureauinstall_qemu
27