aboutsummaryrefslogtreecommitdiff
path: root/remake-merge-builds
blob: 04033a4641a68132174a8acb0b82296b9bbf56a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh -e

# Copyright (C) 2014 Linaro Limited
# Author: Peter Maydell <peter.maydell@linaro.org>
# This work is licensed under the terms of the GNU GPL version 2 or later.

# Blow away and recreate build directories for merge tree

cd ~/linaro/qemu-for-merges

rm -rf build

do_conf() {
    local buildname="$1"
    shift
    mkdir -p "build/$buildname"
    (cd "build/$buildname" && ../../configure "$@")
}

# do_conf aarch64 '--cross-prefix=aarch64-linux-gnu-' '--target-list=arm-softmmu,aarch64-softmmu'

# do_conf notools '--target-list=arm-softmmu' '--disable-tools' '--cc=ccache gcc'

# we must disable gnutls support as its pkg-config has link options that don't work for static build
do_conf all-linux-static '--cc=ccache gcc' '--enable-debug' '--static' '--disable-system' --disable-gnutls
do_conf all '--cc=ccache gcc'
do_conf alldbg '--cc=ccache gcc' '--enable-debug' '--python=python3'
# We have to disable shift-base sanitizer warnings because older
# versions of clang don't realize that -fwrapv means shifts into the sign bit, etc are
# defined behaviour. https://bugs.llvm.org/show_bug.cgi?id=25552
do_conf clang '--cc=clang' '--cxx=clang++' '--enable-gtk' '--extra-cflags=-fsanitize=undefined  -fno-sanitize=shift-base -Werror'

# tci and notcg are now covered by gitlab
#do_conf tci '--enable-debug' '--enable-tcg-interpreter' '--cc=ccache gcc'
#do_conf notcg '--cc=ccache gcc' '--enable-debug' '--disable-tcg'