[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2 2/3] travis: use matching C++ for GCC version



When we use GCC 5.x, we need to install the C++ compiler and the C
compiler together because QEMU tests for feature flags against the C
compiler and assumes the C++ compiler has them. We also have to
ensure that it is used. Have to do the modification of the CXX variable
in two steps to ensure we support older versions of bash in use by the
test machines. While we're at it simply how we select our compiler.

Signed-off-by: Doug Goldstein <cardoe@xxxxxxxxxx>
---
CC: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
CC: Jan Beulich <jbeulich@xxxxxxxx>
CC: Keir Fraser <keir@xxxxxxx>
CC: Tim Deegan <tim@xxxxxxx>
CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

change since v1:
- none
---
 .travis.yml | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 6803e2f..4bcd5a0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,20 +14,20 @@ matrix:
           env: XEN_TARGET_ARCH=x86_64
         - compiler: gcc
           env: XEN_TARGET_ARCH=x86_64 XEN_CONFIG_EXPERT=y RANDCONFIG=y
-        - compiler: gcc
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5
+        - compiler: gcc-5
+          env: XEN_TARGET_ARCH=x86_64
         - compiler: gcc
           env: XEN_TARGET_ARCH=x86_64 debug=y
-        - compiler: gcc
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5 debug=y
+        - compiler: gcc-5
+          env: XEN_TARGET_ARCH=x86_64 debug=y
         - compiler: clang
           env: XEN_TARGET_ARCH=x86_64 clang=y
-        - compiler: clang
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y
+        - compiler: clang-3.8
+          env: XEN_TARGET_ARCH=x86_64 clang=y
         - compiler: clang
           env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
-        - compiler: clang
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y debug=y
+        - compiler: clang-3.8
+          env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
         - compiler: gcc
           env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf-
         - compiler: gcc
@@ -73,15 +73,18 @@ addons:
             - gcc-arm-linux-gnueabihf
             - gcc-aarch64-linux-gnu
             - gcc-5
+            - g++-5
             - clang-3.8
+# we must set CXX manually instead of using 'language: cpp' due to
+# travis-ci/travis-ci#3871
 before_script:
-    - export CC=${COMPILER:-${CC}}
-    - ${CC} --version
+    - export CXX=${CC/cc/++}
+    - export CXX=${CXX/clang/clang++}
 script:
     - ( [ "x${RANDCONFIG}" = "xy" ] && ( make -C xen randconfig )
       || exit 0 )
     - ( ./configure --disable-tools --disable-stubdom --enable-docs &&
-      make CC="${CROSS_COMPILE}${CC}" HOSTCC="${CC}" dist )
+      make dist )
 after_script:
     - cat xen/.config
 notifications:
-- 
2.4.10


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.