From 8fcd02ddc190fe440a48f64035fb2508c7a157dc Mon Sep 17 00:00:00 2001 From: Cengizhan Pasaoglu Date: Mon, 28 Sep 2020 03:53:24 +0300 Subject: [vcpkg-bootstrap] Update the latest g++-10 version for build if exists (#13644) --- 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 0ab46249f..969d1aa95 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -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 -- cgit v1.2.3