From 5319265bc36ce6fecc8f92a4f4767c3cb091c363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Ferdinand=20Rivera=20Morell?= Date: Thu, 23 Jan 2025 05:14:18 +0000 Subject: [PATCH] Fix flags defs not specifying the right rule. --- src/tools/ibmcxx.jam | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/tools/ibmcxx.jam b/src/tools/ibmcxx.jam index 52379a2a08..507c1745e2 100644 --- a/src/tools/ibmcxx.jam +++ b/src/tools/ibmcxx.jam @@ -122,8 +122,8 @@ rule find-versions ( ) } # Declare generators -generators.register-c-compiler ibmcxx.compile.c : C : OBJ : ibmcxx ; generators.register-c-compiler ibmcxx.compile.c++ : CPP : OBJ : ibmcxx ; +generators.register-c-compiler ibmcxx.compile.c : C : OBJ : ibmcxx ; rule flags-clang ( name cond * : vals * : rule ? ) { @@ -221,21 +221,22 @@ flags-* CFLAGS on : -pg ; flags-* LINKFLAGS on : -pg ; # C++ standard version -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 98 : -std=c++98 : compile.c++ ; +flags-clang OPTIONS 03 : -std=c++03 : 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++ ; -flags-* DEFINES ; -flags-* UNDEFS ; +flags-clang OPTIONS 17 : -std=c++17 : compile.c++ ; +flags-clang OPTIONS 20 : -std=c++20 : compile.c++ ; +flags-clang OPTIONS 23 : -std=c++2c : compile.c++ ; +flags-clang OPTIONS latest : -std=c++20 : compile.c++ ; + +flags-* USER_OPTIONS : : compile ; +flags-* USER_OPTIONS : : compile.c++ ; +flags-* DEFINES : : compile ; +flags-* UNDEFS : : compile ; flags-* HDRS ; flags-* STDHDRS ; -flags-* OPTIONS : link ; +flags-* USER_OPTIONS : : link ; flags-* ARFLAGS ; flags-* LIBPATH ; @@ -250,8 +251,8 @@ flags-clang OPTIONS : "-x c" : compile.c ; flags-clang OPTIONS : "-x c++" : compile.c++ ; # Generate shared link objects. -flags-ibm LINKFLAGS : -G : ibmcxx.link.dll ; -flags-clang LINKFLAGS : -shared : ibmcxx.link.dll ; +flags-ibm LINKFLAGS shared : -G : link.dll ; +flags-clang LINKFLAGS shared : -shared : link.dll ; _ = " " ;