aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-05-13 11:43:24 -0700
committerGitHub <noreply@github.com>2019-05-13 11:43:24 -0700
commit8a6c7f375b5561de70008021a54a535c2c30a89f (patch)
tree48cc1f6026c63b506a7035f39a329b22db5ebc7f /scripts
parent68267e29a1fa86158787309624081dfd8319c9f0 (diff)
downloadvcpkg-8a6c7f375b5561de70008021a54a535c2c30a89f.tar.gz
vcpkg-8a6c7f375b5561de70008021a54a535c2c30a89f.zip
[vcpkg-bootstrap.sh] Enable finding gcc 9 (#6417)
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 99d8dab68..00d31760a 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -203,7 +203,9 @@ selectCXX()
if [ "x$CXX" = "x" ]; then
CXX=g++
- if which g++-8 >/dev/null 2>&1; then
+ if which g++-9 >/dev/null 2>&1; then
+ CXX=g++-9
+ elif which g++-8 >/dev/null 2>&1; then
CXX=g++-8
elif which g++-7 >/dev/null 2>&1; then
CXX=g++-7