Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cxxstd=latest for gcc and clang #430

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading