Merge pull request #3358 from fbudin69500/DetectAllOldVersionsOfGCC

Require the version of g++ to be at least 6
This commit is contained in:
Alexander Karatarakis 2018-04-30 20:40:50 -07:00 committed by GitHub
commit aaad944e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ selectCXX()
gccversion="$("$CXX" -v 2>&1)"
gccversion="$(extractStringBetweenDelimiters "$gccversion" "gcc version " ".")"
if [ "$gccversion" = "5" ]; then
if [ "$gccversion" -lt "6" ]; then
echo "CXX ($CXX) is too old; please install a newer compiler such as g++-7."
echo "sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y"
echo "sudo apt-get update -y"