Skip to content

Commit

Permalink
Add language options for clang variant. Set correct cxxstd flags for …
Browse files Browse the repository at this point in the history
…clang variant. Add to reference docs.
  • Loading branch information
grafikrobot committed Jan 22, 2025
1 parent 5e31f24 commit c922222
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions doc/src/reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ include::../../src/tools/embarcadero.jam[tag=doc]
include::../../src/tools/emscripten.jam[tag=doc]
include::../../src/tools/gcc.jam[tag=doc]
include::../../src/tools/hp_cxx.jam[tag=doc]
include::../../src/tools/ibmcxx.jam[tag=doc]
include::../../src/tools/intel.jam[tag=doc]
include::../../src/tools/msvc.jam[tag=doc]
include::../../src/tools/sun.jam[tag=doc]
Expand Down
20 changes: 9 additions & 11 deletions src/tools/ibmcxx.jam
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,13 @@ flags-* CFLAGS <profiling>on : -pg ;
flags-* LINKFLAGS <profiling>on : -pg ;

# C++ standard version
flags-ibm OPTIONS <cxxstd>98 : -std=c++03 : compile.c++ ;
flags-ibm OPTIONS <cxxstd>03 : -std=c++03 : compile.c++ ;
flags-ibm OPTIONS <cxxstd>0x : -std=c++11 : compile.c++ ;
flags-ibm OPTIONS <cxxstd>11 : -std=c++11 : compile.c++ ;
flags-ibm OPTIONS <cxxstd>1y : -std=c++1y : compile.c++ ;
flags-ibm OPTIONS <cxxstd>14 : -std=c++1y : compile.c++ ;
flags-ibm OPTIONS <cxxstd>1z : -std=c++1y : compile.c++ ;
flags-ibm OPTIONS <cxxstd>17 : -std=c++1y : compile.c++ ;
flags-ibm OPTIONS <cxxstd>2a : -std=c++1y : compile.c++ ;
flags-ibm OPTIONS <cxxstd>20 : -std=c++1y : compile.c++ ;
flags-ibm OPTIONS <cxxstd>latest : -std=c++1y : compile.c++ ;
flags-clang OPTIONS <cxxstd>98 : -std=c++0x : compile.c++ ;
flags-clang OPTIONS <cxxstd>03 : -std=c++0x : compile.c++ ;
flags-clang OPTIONS <cxxstd>0x : -std=c++1x : compile.c++ ;
flags-clang OPTIONS <cxxstd>11 : -std=c++11 : compile.c++ ;
flags-clang OPTIONS <cxxstd>1y : -std=c++1y : compile.c++ ;
flags-clang OPTIONS <cxxstd>14 : -std=c++14 : compile.c++ ;
flags-clang OPTIONS <cxxstd>latest : -std=c++14 : compile.c++ ;

flags-* OPTIONS <cflags> : compile ;
flags-* OPTIONS <cxxflags> : compile.c++ ;
Expand All @@ -249,6 +245,8 @@ flags-* FINDLIBS <find-static-library> ;

flags-ibm OPTIONS : -qsourcetype=c : compile.c ;
flags-ibm OPTIONS : -qsourcetype=c++ : compile.c++ ;
flags-clang OPTIONS : "-x c" : compile.c ;
flags-clang OPTIONS : "-x c++" : compile.c++ ;


_ = " " ;
Expand Down

0 comments on commit c922222

Please sign in to comment.