Skip to content

Commit 8079f8a

Browse files
committed
[libc++] Simplify conditional in __config for _LIBCPP_NO_RTTI
We don't support GCC's older than 5.x anymore.
1 parent 513976d commit 8079f8a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libcxx/include/__config

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,12 +1106,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
11061106

11071107
// Try to find out if RTTI is disabled.
11081108
// g++ and cl.exe have RTTI on by default and define a macro when it is.
1109-
// g++ only defines the macro in 4.3.2 and onwards.
11101109
#if !defined(_LIBCPP_NO_RTTI)
1111-
# if defined(__GNUC__) && \
1112-
((__GNUC__ >= 5) || \
1113-
(__GNUC__ == 4 && (__GNUC_MINOR__ >= 3 || __GNUC_PATCHLEVEL__ >= 2))) && \
1114-
!defined(__GXX_RTTI)
1110+
# if defined(__GNUC__) && !defined(__GXX_RTTI)
11151111
# define _LIBCPP_NO_RTTI
11161112
# elif defined(_LIBCPP_COMPILER_MSVC) && !defined(_CPPRTTI)
11171113
# define _LIBCPP_NO_RTTI

0 commit comments

Comments
 (0)