[bootstrap-vcpkg] Add g++-11 support (#17633)

This commit is contained in:
xyb 2021-05-03 10:50:38 -07:00 committed by GitHub
parent a454cf6e00
commit c8729e1900
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++-10 >/dev/null 2>&1; then
if which g++-11 >/dev/null 2>&1; then
CXX=g++-11
elif which g++-10 >/dev/null 2>&1; then
CXX=g++-10
elif which g++-9 >/dev/null 2>&1; then
CXX=g++-9