diff options
Diffstat (limited to 'util')
| -rw-r--r-- | util/generic/yexception_ut.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp index b2ca4b1fede..ad4b5578b0f 100644 --- a/util/generic/yexception_ut.cpp +++ b/util/generic/yexception_ut.cpp @@ -387,7 +387,8 @@ private: try { throw int(1); } catch (...) { -#if defined(LIBCXX_BUILDING_LIBCXXRT) || defined(LIBCXX_BUILDING_LIBGCC) +#if defined(_linux_) || defined(_darwin_) + // On Linux and macOS we use libcxxrt which handles throw integers properly UNIT_ASSERT_VALUES_EQUAL(CurrentExceptionTypeName(), "int"); #else UNIT_ASSERT_VALUES_EQUAL(CurrentExceptionTypeName(), "unknown type"); |
