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
11
SConstruct
11
SConstruct
|
@ -796,8 +796,15 @@ def boost_regex_has_icu(context):
|
|||
|
||||
int main()
|
||||
{
|
||||
UnicodeString ustr;
|
||||
boost::u32regex pattern = boost::make_u32regex(ustr);
|
||||
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