[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 03/15] travis.yml: Use clang++ in the Clang tests
From: |
Alex Bennée |
Subject: |
[PATCH v1 03/15] travis.yml: Use clang++ in the Clang tests |
Date: |
Wed, 20 May 2020 15:05:29 +0100 |
From: Thomas Huth <address@hidden>
Our configure script does not look for clang++ automatically, so we
should use --cxx=clang++ to make sure that we test our C++ code with
Clang, too. And while we're at it, also use --host-cc=clang here
to avoid that we use the normal "cc" as host C compiler.
Signed-off-by: Thomas Huth <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
---
.travis.yml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 1ec8a7b4657..564be50a3c1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -205,14 +205,15 @@ jobs:
# Test with Clang for compile portability (Travis uses clang-5.0)
- name: "Clang (user)"
env:
- - CONFIG="--disable-system"
+ - CONFIG="--disable-system --host-cc=clang --cxx=clang++"
- CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default"
compiler: clang
- name: "Clang (main-softmmu)"
env:
- - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} "
+ - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS}
+ --host-cc=clang --cxx=clang++"
- CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize"
compiler: clang
before_script:
@@ -222,7 +223,8 @@ jobs:
- name: "Clang (other-softmmu)"
env:
- - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
+ - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}
+ --host-cc=clang --cxx=clang++"
- CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default"
compiler: clang
--
2.20.1
- [PATCH v1 00/15] testing and plugin updates, Alex Bennée, 2020/05/20
- [PATCH v1 02/15] tests/vm: pass --genisoimage to basevm script, Alex Bennée, 2020/05/20
- [PATCH v1 04/15] tests/tcg: fix invocation of the memory record/replay tests, Alex Bennée, 2020/05/20
- [PATCH v1 01/15] configure: add alternate binary for genisoimage, Alex Bennée, 2020/05/20
- [PATCH v1 05/15] tests/fp: enable extf80_le_quite tests, Alex Bennée, 2020/05/20
- [PATCH v1 08/15] tests/docker: bump fedora to 32, Alex Bennée, 2020/05/20
- [PATCH v1 03/15] travis.yml: Use clang++ in the Clang tests,
Alex Bennée <=
- [PATCH v1 07/15] tests/tcg: better detect confused gdb which can't connect, Alex Bennée, 2020/05/20
- [PATCH v1 06/15] tests/fp: split and audit the conversion tests, Alex Bennée, 2020/05/20
- [PATCH v1 10/15] tests/docker: use a gcc-10 based image for arm64 tests, Alex Bennée, 2020/05/20
- [PATCH v1 12/15] cpus-common: ensure auto-assigned cpu_indexes don't clash, Alex Bennée, 2020/05/20
- [PATCH v1 11/15] tests/tcg/aarch64: Add bti smoke test, Alex Bennée, 2020/05/20