mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:53:02 +08:00
Merge pull request #3358 from fbudin69500/DetectAllOldVersionsOfGCC
Require the version of g++ to be at least 6
This commit is contained in:
commit
aaad944e5a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user