diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-06 16:41:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-06 16:41:19 +0200 |
commit | 2d0fb1295e544027556fca412d41d7c258b3a241 (patch) | |
tree | 3dc38d05fe37576241135f249660a75c3ea39d78 | |
parent | 6487c69cb823f551fec995bb3cbb5584a5ab3dca (diff) |
Translate 'latest' to C++2a for GCC 8
-rw-r--r-- | build2/cxx/init.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx index 25dd7da..1ba452b 100644 --- a/build2/cxx/init.cxx +++ b/build2/cxx/init.cxx @@ -81,8 +81,8 @@ namespace build2 } case compiler_id::gcc: { - //if (mj >= 8) o = "-std=c++2a"; // 20 - if (mj >= 5) o = "-std=c++1z"; // 17 + if (mj >= 8) o = "-std=c++2a"; // 20 + else if (mj >= 5) o = "-std=c++1z"; // 17 else if (mj == 4 && mi >= 8) o = "-std=c++1y"; // 14 else if (mj == 4 && mi >= 4) o = "-std=c++0x"; // 11 |