mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-21 07:42:52 +00:00
[libc++][libunwind] Fixes to allow GCC 13 to compile libunwind/libc++abi/libc++
These are changes to allow GCC 13 to successfully compile the runtimes stack. Reviewed By: ldionne, #libc, #libunwind, MaskRay Spies: MaskRay, zibi, SeanP, power-llvm-team, mstorsjo, arichardson, libcxx-commits Differential Revision: https://reviews.llvm.org/D151387
This commit is contained in:
parent
2df05cd01c
commit
3537338d1a
@ -19,7 +19,7 @@
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
#if __has_builtin(__remove_cv)
|
||||
#if __has_builtin(__remove_cv) && !defined(_LIBCPP_COMPILER_GCC)
|
||||
template <class _Tp>
|
||||
struct remove_cv {
|
||||
using type _LIBCPP_NODEBUG = __remove_cv(_Tp);
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
#if __has_builtin(__remove_cvref)
|
||||
#if __has_builtin(__remove_cvref) && !defined(_LIBCPP_COMPILER_GCC)
|
||||
template <class _Tp>
|
||||
using __remove_cvref_t _LIBCPP_NODEBUG = __remove_cvref(_Tp);
|
||||
#else
|
||||
|
@ -80,11 +80,6 @@ endif()
|
||||
|
||||
# Setup flags.
|
||||
add_link_flags_if(CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG --unwindlib=none)
|
||||
if (CXX_SUPPORTS_NOSTDLIBXX_FLAG)
|
||||
add_link_flags_if_supported(-nostdlib++)
|
||||
else()
|
||||
add_link_flags_if_supported(-nodefaultlibs)
|
||||
endif()
|
||||
|
||||
# MINGW_LIBRARIES is defined in config-ix.cmake
|
||||
add_library_flags_if(MINGW "${MINGW_LIBRARIES}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user