aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-05-15 20:57:10 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-05-15 21:42:58 -0700
commit8ce92654856897d5da7649ecea5d28818f3bcadd (patch)
treeaa2e6e8e8eee357a5387a3b98331b19088a5ccbf
parent87e7728ff34f726044c95657bcebd39a7d71c796 (diff)
downloadvcpkg-8ce92654856897d5da7649ecea5d28818f3bcadd.tar.gz
vcpkg-8ce92654856897d5da7649ecea5d28818f3bcadd.zip
[bootstrap-vcpkg.sh] Find g++-8. Fixes #3486.
-rw-r--r--scripts/bootstrap.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 037a9136d..8a4c92936 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -157,7 +157,9 @@ selectCXX()
if [ "x$CXX" = "x" ]; then
CXX=g++
- if which g++-7 >/dev/null 2>&1; then
+ if which g++-8 >/dev/null 2>&1; then
+ CXX=g++-8
+ elif which g++-7 >/dev/null 2>&1; then
CXX=g++-7
elif which g++-6 >/dev/null 2>&1; then
CXX=g++-6