From 8445dce654c400b724e4cb8391b82e8e742eeca8 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 21 Nov 2023 12:00:46 +0100 Subject: [PATCH] Allow to disable the IConv backend in B2 Useful if the IConv implementation has bugs. Now honors `boost.locale.iconv=off` correctly similar to other backends --- build/Jamfile.v2 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 16bc9dfb..f1e2d05d 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -202,12 +202,19 @@ rule configure-full ( properties * : flags-only ) local result ; local flags-result ; + if ! in $(properties:G) + { + # The system Iconv on Solaris may have bugs, while the GNU Iconv is fine. + # So disable it by default if on Solaris. + if solaris in $(properties) + { + properties += off ; + } + } + local found-iconv ; - # The system Iconv on Solaris may have bugs, while the GNU Iconv is fine. - # So enable by default only if not on Solaris. - if on in $(properties) - || ( ! in $(properties:G) && ! solaris in $(properties) ) + if ! off in $(properties) { # See if iconv is bundled with standard library. if [ configure.builds has_iconv : $(properties) : "iconv (libc)" ]