summaryrefslogtreecommitdiff
path: root/coin
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2020-03-12 07:38:09 +0000
committerTony Sarajärvi <tony.sarajarvi@qt.io>2020-05-12 16:40:28 +0000
commit38139878ffdfea6b45d61bc3d071e7a244264516 (patch)
treee16749e1b201de4aaab7a7d60c9f5619d2ae11ff /coin
parentbca97664c6b12f1a1965b2eb20c20894b3f31ead (diff)
downloadqt5-38139878ffdfea6b45d61bc3d071e7a244264516.tar.gz
Install GCC 10 on SLES 15
Task-number: QTQAINFRA-3444 Change-Id: Iaf9b3ea5331cfc0b3d19a09f55aa4df1de93fbb2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
Diffstat (limited to 'coin')
-rwxr-xr-xcoin/provisioning/qtci-linux-SLES-15-x86_64/02-zypperpackages.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/coin/provisioning/qtci-linux-SLES-15-x86_64/02-zypperpackages.sh b/coin/provisioning/qtci-linux-SLES-15-x86_64/02-zypperpackages.sh
index 3ea67ef0..638a9387 100755
--- a/coin/provisioning/qtci-linux-SLES-15-x86_64/02-zypperpackages.sh
+++ b/coin/provisioning/qtci-linux-SLES-15-x86_64/02-zypperpackages.sh
@@ -37,7 +37,16 @@ set -ex
sudo zypper -nq install elfutils binutils
-sudo zypper -nq install git gcc gcc-c++ make patch wget tar
+sudo zypper addrepo --no-gpgcheck https://download.opensuse.org/repositories/devel:gcc/SLE-15/devel:gcc.repo
+sudo zypper refresh
+sudo zypper -nq install --force-resolution gcc10 gcc10-c++
+
+sudo /usr/sbin/update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 1 \
+ --slave /usr/bin/g++ g++ /usr/bin/g++-10 \
+ --slave /usr/bin/cc cc /usr/bin/gcc-10 \
+ --slave /usr/bin/c++ c++ /usr/bin/g++-10
+
+sudo zypper -nq install git make patch wget tar
sudo zypper -nq install bison flex gperf \
zlib-devel \