Skip to content

Commit 5098741

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 57cda42 commit 5098741

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build/Jamfile.v2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ rule configure-full ( properties * : flags-only )
244244
# ICU might introduce an own iconv, so check for that.
245245
internal_iconv_target = has_iconv_with_icu ;
246246
external_iconv_target = has_external_iconv_with_icu ;
247+
} else if <boost.locale.icu>on in $(properties)
248+
{
249+
errors.user-error : "ICU support was requested but not found" ;
247250
}
248251
}
249252

@@ -259,6 +262,9 @@ rule configure-full ( properties * : flags-only )
259262
{
260263
found-iconv = true ;
261264
result += <library>iconv ;
265+
} else if <boost.locale.iconv>on in $(properties)
266+
{
267+
errors.user-error : "Iconv support was requested but not found" ;
262268
}
263269
}
264270
if $(found-iconv)

0 commit comments

Comments
 (0)