aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-03-24 08:55:47 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-03-24 11:05:27 +0100
commitc1cc931f97fc2fe593bddc5090fd2645b2d5ec61 (patch)
treecdeaae9a393ce2911abadffad1d0751a465ed776
parent90f938c2ecefbf16b4793a4135531ed5394a52ac (diff)
downloadgcc-c1cc931f97fc2fe593bddc5090fd2645b2d5ec61.zip
gcc-c1cc931f97fc2fe593bddc5090fd2645b2d5ec61.tar.gz
gcc-c1cc931f97fc2fe593bddc5090fd2645b2d5ec61.tar.bz2
ci: Add job for building gccrs with older gcc
As Thomas Schwinge pointed out, GCC 4.8 is the minimum version to be used for building current GCC, meaning that we should make an effort to support it before we consider upstreaming or backporting. The main differences are probably a less powerful standard template library or small compilation differences.
-rw-r--r--.github/workflows/ccpp.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
index 5e9e5f4..04cfbab 100644
--- a/.github/workflows/ccpp.yml
+++ b/.github/workflows/ccpp.yml
@@ -84,3 +84,45 @@ jobs:
else \
exit 0; \
fi
+
+ build-and-check-older-gcc:
+
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Deps
+ run: |
+ sudo apt-get update;
+ sudo apt-get install -y \
+ automake \
+ autoconf \
+ libtool \
+ autogen \
+ bison \
+ flex \
+ libgmp3-dev \
+ libmpfr-dev \
+ libmpc-dev \
+ build-essential \
+ gcc-4.8 \
+ g++-4.8 \
+ gcc-4.8-multilib \
+ g++-4.8-multilib \
+ dejagnu
+
+ - name: Configure
+ run: |
+ mkdir -p gccrs-build;
+ cd gccrs-build;
+ ../configure \
+ CC='gcc-4.8' \
+ CXX='g++-4.8' \
+ --enable-languages=rust \
+ --disable-bootstrap \
+ --enable-multilib
+
+ - name: Build
+ shell: bash
+ run: |
+ make -C gccrs-build -j $(nproc)