aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-09-28 03:53:24 +0300
committerGitHub <noreply@github.com>2020-09-27 17:53:24 -0700
commit8fcd02ddc190fe440a48f64035fb2508c7a157dc (patch)
tree1e8e09dc14bc5fc03736e8ca32fa0d8f06701ef1 /scripts
parentc98fd09290e1dc76c51b6599873a14703d37fc93 (diff)
downloadvcpkg-8fcd02ddc190fe440a48f64035fb2508c7a157dc.tar.gz
vcpkg-8fcd02ddc190fe440a48f64035fb2508c7a157dc.zip
[vcpkg-bootstrap] Update the latest g++-10 version for build if exists (#13644)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.sh4
1 files changed, 3 insertions, 1 deletions
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