diff --git a/.ci/provision/build.sh b/.ci/provision/build.sh index 40099a13e..95438e6e6 100755 --- a/.ci/provision/build.sh +++ b/.ci/provision/build.sh @@ -1,6 +1,12 @@ #!/bin/bash set -ex +# CentOS 7 comes with GCC 4.8.5 which does not fully support C++14, so we need +# a newer toolchain. +sudo yum install -y centos-release-scl +sudo yum install -y devtoolset-9 +source /opt/rh/devtoolset-9/enable + # Build omnibus package . $HOME/.asdf/asdf.sh cd /vagrant diff --git a/.ci/provision/centos_7.sh b/.ci/provision/centos_7.sh index cc2b2bcbd..fdf074b76 100755 --- a/.ci/provision/centos_7.sh +++ b/.ci/provision/centos_7.sh @@ -1,11 +1,6 @@ #!/bin/bash set -ex -# CentOS 7 comes with GCC 4.8.5 which does not fully support C++14, so we need -# a newer toolchain. -sudo yum install -y centos-release-scl -sudo yum install -y devtoolset-9 -source /opt/rh/devtoolset-9/enable # Install prerequisites sudo yum install -y \