diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-02-06 17:47:57 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-02-06 17:47:57 +0000 |
commit | a32df7e840d70c52ed456d4b1bdd0da20abb9beb (patch) | |
tree | 00e31ff158c74cbd144691e5203cf8b6ac3b9055 /cmake | |
parent | 7940f197195aed46853d86aaf654230a2de6e306 (diff) |
unwind: use -fno-rtti -fno-exceptions -funwind-tables
RTTI and exceptions are not needed for the unwinder, the use of C++ there is for
very specific cases, and does not require dynamic_cast nor does it use
exceptions. This avoids unnecessary references to type information being
emitted.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@228408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 2fea2cd..5405587 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -5,6 +5,8 @@ include(CheckCXXCompilerFlag) # Check compiler flags check_c_compiler_flag(-funwind-tables LIBCXXABI_HAS_FUNWIND_TABLES) check_cxx_compiler_flag(-fPIC LIBCXXABI_HAS_FPIC_FLAG) +check_cxx_compiler_flag(-fno-exceptions LIBCXXABI_HAS_NO_EXCEPTIONS_FLAG) +check_cxx_compiler_flag(-fno-rtti LIBCXXABI_HAS_NO_RTTI_FLAG) check_cxx_compiler_flag(-fstrict-aliasing LIBCXXABI_HAS_FSTRICT_ALIASING_FLAG) check_cxx_compiler_flag(-nodefaultlibs LIBCXXABI_HAS_NODEFAULTLIBS_FLAG) check_cxx_compiler_flag(-nostdinc++ LIBCXXABI_HAS_NOSTDINCXX_FLAG) |