aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cxx/init.cxx4
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