From c8729e190041e8cb2e5dbba894348930aaacecdd Mon Sep 17 00:00:00 2001 From: xyb Date: Mon, 3 May 2021 10:50:38 -0700 Subject: [bootstrap-vcpkg] Add g++-11 support (#17633) --- scripts/bootstrap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 28a5e2403..280793423 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -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 -- cgit v1.2.3