Message ID | 1454510164-6278-3-git-send-email-famz@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/docker/clang.sh b/tests/docker/clang.sh new file mode 100755 index 0000000..85fe0a5 --- /dev/null +++ b/tests/docker/clang.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if ! type clang clang++ &>/dev/null; then + echo "clang not avialable, skip" + exit 0 +fi + + +cd $(mktemp -d) +$QEMU_SRC/configure \ + --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --host-cc=/usr/bin/clang \ + --extra-cflags=-fsanitize=undefined \ + --target-list=x86_64-softmmu,aarch64-softmmu + +make $MAKEFLAGS +make $MAKEFLAGS check
Signed-off-by: Fam Zheng <famz@redhat.com> --- tests/docker/clang.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/docker/clang.sh