[vcpkg-bootstrap] Update the latest g++-10 version for build if exists (#13644)

This commit is contained in:
Cengizhan Pasaoglu 2020-09-28 03:53:24 +03:00 committed by GitHub
parent c98fd09290
commit 8fcd02ddc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,9 @@ fetchTool()
selectCXX()
{
if [ "x$CXX" = "x" ]; then
if which g++-9 >/dev/null 2>&1; then
if which g++-10 >/dev/null 2>&1; then
CXX=g++-10
elif which g++-9 >/dev/null 2>&1; then
CXX=g++-9
elif which g++-8 >/dev/null 2>&1; then
CXX=g++-8