trap exceptions in the configure check for whether boost regex has icu support
This commit is contained in:
parent
b8663b67e3
commit
578b434f4d
1 changed files with 9 additions and 2 deletions
|
@ -797,7 +797,14 @@ def boost_regex_has_icu(context):
|
|||
int main()
|
||||
{
|
||||
UnicodeString ustr;
|
||||
try {
|
||||
boost::u32regex pattern = boost::make_u32regex(ustr);
|
||||
}
|
||||
// an exception is fine, still indicates support is
|
||||
// likely compiled into regex
|
||||
catch (...) {
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue