Skip to content

Commit

Permalink
Updated cxxstd=latest for gcc and clang.
Browse files Browse the repository at this point in the history
Recent versions of the compilers support targeting C++26 draft.
  • Loading branch information
Lastique committed Dec 7, 2024
1 parent 7954ee6 commit ac86d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/tools/clang.jam
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ rule init-cxxstd-flags ( toolset : condition * : version )
local dialects = [ feature.values <cxxstd-dialect> ] ;
dialects = [ set.difference $(dialects) : gnu iso ] ;
local std ;
if [ version-ge $(version) : 12.0 ] { std = 2b ; }
if [ version-ge $(version) : 17.0 ] { std = 26 ; }
else if [ version-ge $(version) : 12.0 ] { std = 2b ; }
else if [ version-ge $(version) : 10.0 ] { std = 20 ; }
else if [ version-ge $(version) : 6.0 ] { std = 2a ; }
else if [ version-ge $(version) : 5.0 ] { std = 17 ; }
Expand Down
3 changes: 2 additions & 1 deletion src/tools/gcc.jam
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ local rule compile-link-flags ( * )
local rule init-cxxstd-flags ( condition * : version )
{
local std ;
if [ version-ge $(version) : 11 ] { std = 23 ; }
if [ version-ge $(version) : 14 ] { std = 26 ; }
else if [ version-ge $(version) : 11 ] { std = 23 ; }
else if [ version-ge $(version) : 10 ] { std = 20 ; }
else if [ version-ge $(version) : 8 ] { std = 2a ; }
else if [ version-ge $(version) : 6 ] { std = 17 ; }
Expand Down

0 comments on commit ac86d9f

Please sign in to comment.