[Mesa-dev] [PATCH v3 2/2] travis: Add test for gcc-4.4 compiler tool chain

Gert Wollny gw.fossdev at gmail.com
Tue Sep 19 11:35:04 UTC 2017


Add a build check for g++-4.4 which is the oldest gcc based compiler
directly supported in ubuntu/trusty, and one of the compilers that don't
have full c++11 support, i.e. it doesn't understand -std=c++11.

Since llvm >= 3.9 propagates -std=c++11 in the LLVM_CXXFLAGS, an
older llvm version is required for this test.

---
 .travis.yml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 4a9ad46f60..3c0640b36e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -85,6 +85,39 @@ matrix:
             - libelf-dev
             - libunwind8-dev
     - env:
+        - LABEL="make Gallium Drivers Other, pre c++11 compiler"
+        - BUILD=make
+        - MAKEFLAGS="-j4"
+        - MAKE_CHECK_COMMAND="make check -j4"
+        - OVERRIDE_CC="gcc-4.4"
+        - OVERRIDE_CXX="g++-4.4"
+        - LLVM_VERSION=3.6
+        - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
+        - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
+        - DRI_DRIVERS=""
+        - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
+        - GALLIUM_DRIVERS="i915,swrast"
+        - VULKAN_DRIVERS=""
+        - LIBUNWIND_FLAGS="--enable-libunwind"
+      addons:
+        apt:
+          sources:
+            - llvm-toolchain-trusty-3.6
+          packages:
+            # LLVM packaging is broken and misses these dependencies
+            - libedit-dev
+            - llvm-3.6-dev
+            - g++-4.4
+            - gcc-4.4
+            # Common
+            - xz-utils
+            - x11proto-xf86vidmode-dev
+            - libexpat1-dev
+            - libx11-xcb-dev
+            - libelf-dev
+            - libunwind8-dev
+
+    - env:
         - LABEL="make Gallium Drivers Other"
         - BUILD=make
         - MAKEFLAGS="-j4"
-- 
2.13.5



More information about the mesa-dev mailing list