From 331e295515aec415005802efd69cd9d1028a5e00 Mon Sep 17 00:00:00 2001 From: thegeorg Date: Fri, 3 Jan 2025 19:30:22 +0300 Subject: Do not yield GLOBAL define regarding current C++ runtime This codesearch query yields all the results (i. e. only `yexception_ut.cpp` depends on this define): HIDDEN_URL commit_hash:9cac855ba71451e3691fc514a5a423173c3a8aae --- util/generic/yexception_ut.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') 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"); -- cgit v1.3