Skip to content

Commit c5d5e1a

Browse files
committed
Error build if ICU or IConv support was requested but is not available.
This checks for the explicit commandline setting.
1 parent 6b79d8b commit c5d5e1a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

build/Jamfile.v2

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2003 John Maddock
22
# Copyright 2010 Artyom Beilis
3-
# Copyright 2021 - 2022 Alexander Grund
3+
# Copyright 2021-2024 Alexander Grund
44
#
55
# Distributed under the Boost Software License, Version 1.0.
66
# https://www.boost.org/LICENSE_1_0.txt.
@@ -248,6 +248,9 @@ rule configure-full ( properties * : flags-only )
248248
# ICU might introduce an own iconv, so check for that.
249249
internal_iconv_target = has_iconv_with_icu ;
250250
external_iconv_target = has_external_iconv_with_icu ;
251+
} else if <boost.locale.icu>on in $(properties)
252+
{
253+
errors.user-error : "ICU support was requested but not found" ;
251254
}
252255
}
253256

@@ -263,6 +266,9 @@ rule configure-full ( properties * : flags-only )
263266
{
264267
found-iconv = true ;
265268
result += <library>iconv ;
269+
} else if <boost.locale.iconv>on in $(properties)
270+
{
271+
errors.user-error : "Iconv support was requested but not found" ;
266272
}
267273
}
268274
if $(found-iconv)

0 commit comments

Comments
 (0)