now works with -fno-exceptions and -fno-rtti
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@110828 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/__config b/include/__config
index c3cf8c7..a19b297 100644
--- a/include/__config
+++ b/include/__config
@@ -90,6 +90,10 @@
#define _LIBCPP_NO_EXCEPTIONS
#endif
+#if !(__has_feature(cxx_rtti))
+#define _LIBCPP_NO_RTTI
+#endif
+
#define _LIBCPP_HAS_NO_ADVANCED_SFINAE
#define _LIBCPP_HAS_NO_STRONG_USING
#define _LIBCPP_HAS_NO_TEMPLATE_ALIASES
@@ -139,6 +143,10 @@
#define _LIBCPP_NO_EXCEPTIONS
#endif
+#ifndef __GXX_RTTI
+#define _LIBCPP_NO_RTTI
+#endif
+
#define _LIBCPP_HAS_NO_TEMPLATE_ALIASES
#ifndef __GXX_EXPERIMENTAL_CXX0X__