diff options
| author | xyb <xyb@xyb.name> | 2021-05-03 10:50:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-03 10:50:38 -0700 |
| commit | c8729e190041e8cb2e5dbba894348930aaacecdd (patch) | |
| tree | 467445c85f068b4bd3cd706c5f3f64e6c0f5695e /scripts | |
| parent | a454cf6e0036091e9e9fe52376a05b00903671c9 (diff) | |
| download | vcpkg-c8729e190041e8cb2e5dbba894348930aaacecdd.tar.gz vcpkg-c8729e190041e8cb2e5dbba894348930aaacecdd.zip | |
[bootstrap-vcpkg] Add g++-11 support (#17633)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/bootstrap.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
