From c9222223058ca60d8bc42bfda7741730f29b783e Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 21 Jan 2025 22:55:37 -0600 Subject: [PATCH] Add language options for clang variant. Set correct cxxstd flags for clang variant. Add to reference docs. --- doc/src/reference.adoc | 1 + src/tools/ibmcxx.jam | 20 +++++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/doc/src/reference.adoc b/doc/src/reference.adoc index 071d9fbfb3..e543cf3c01 100644 --- a/doc/src/reference.adoc +++ b/doc/src/reference.adoc @@ -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] diff --git a/src/tools/ibmcxx.jam b/src/tools/ibmcxx.jam index d1210a2a76..f586ded71c 100644 --- a/src/tools/ibmcxx.jam +++ b/src/tools/ibmcxx.jam @@ -221,17 +221,13 @@ flags-* CFLAGS on : -pg ; flags-* LINKFLAGS on : -pg ; # C++ standard version -flags-ibm OPTIONS 98 : -std=c++03 : compile.c++ ; -flags-ibm OPTIONS 03 : -std=c++03 : compile.c++ ; -flags-ibm OPTIONS 0x : -std=c++11 : compile.c++ ; -flags-ibm OPTIONS 11 : -std=c++11 : compile.c++ ; -flags-ibm OPTIONS 1y : -std=c++1y : compile.c++ ; -flags-ibm OPTIONS 14 : -std=c++1y : compile.c++ ; -flags-ibm OPTIONS 1z : -std=c++1y : compile.c++ ; -flags-ibm OPTIONS 17 : -std=c++1y : compile.c++ ; -flags-ibm OPTIONS 2a : -std=c++1y : compile.c++ ; -flags-ibm OPTIONS 20 : -std=c++1y : compile.c++ ; -flags-ibm OPTIONS latest : -std=c++1y : compile.c++ ; +flags-clang OPTIONS 98 : -std=c++0x : compile.c++ ; +flags-clang OPTIONS 03 : -std=c++0x : compile.c++ ; +flags-clang OPTIONS 0x : -std=c++1x : compile.c++ ; +flags-clang OPTIONS 11 : -std=c++11 : compile.c++ ; +flags-clang OPTIONS 1y : -std=c++1y : compile.c++ ; +flags-clang OPTIONS 14 : -std=c++14 : compile.c++ ; +flags-clang OPTIONS latest : -std=c++14 : compile.c++ ; flags-* OPTIONS : compile ; flags-* OPTIONS : compile.c++ ; @@ -249,6 +245,8 @@ flags-* FINDLIBS ; 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++ ; _ = " " ;