[libcxx-commits] [libcxx] [libc++][CI] Tests the no RTTI configuration. (PR #65518)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 12 09:37:34 PDT 2023
================
@@ -370,6 +372,11 @@ if (LIBCXX_HAS_PTHREAD_API)
endif()
endif()
+if (NOT LIBCXX_ENABLE_RTTI AND LIBCXX_ENABLE_EXCEPTIONS)
+ message(FATAL_ERROR "The option LIBCXX_ENABLE_RTTI can not be turned off"
----------------
EricWF wrote:
Why not? Clang will still emit RTTI for types which are thrown. `-fexceptions -fno-rtti` is a perfectly valid way to use the library.
Though IDK if it makes sense to build a dylib in that configuration.
However, this option seems to control both how the library is built and how the test suite is run. And those should be separate.
https://github.com/llvm/llvm-project/pull/65518
More information about the libcxx-commits
mailing list