libcxx: update to LLVM 18
release/18.x branch, commit 78b99c73ee4b96fe9ce0e294d4632326afb2db42 This adds the flag `-D_LIBCPP_HARDENING_MODE` which is determined based on the Zig optimization mode. This commit also fixes libunwind, libcxx, and libcxxabi to properly report sub compilation errors.
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
_LIBCPP_PUSH_MACROS
|
||||
#include <__undef_macros>
|
||||
|
||||
#if _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
@@ -53,7 +56,7 @@ struct __fn {
|
||||
const _OldType& __old_value,
|
||||
const _NewType& __new_value,
|
||||
_Proj __proj = {}) const {
|
||||
auto __pred = [&](const auto& __value) { return __value == __old_value; };
|
||||
auto __pred = [&](const auto& __value) -> bool { return __value == __old_value; };
|
||||
return ranges::__replace_copy_if_impl(
|
||||
std::move(__first), std::move(__last), std::move(__result), __pred, __new_value, __proj);
|
||||
}
|
||||
@@ -68,7 +71,7 @@ struct __fn {
|
||||
_LIBCPP_HIDE_FROM_ABI constexpr replace_copy_result<borrowed_iterator_t<_Range>, _OutIter> operator()(
|
||||
_Range&& __range, _OutIter __result, const _OldType& __old_value, const _NewType& __new_value, _Proj __proj = {})
|
||||
const {
|
||||
auto __pred = [&](const auto& __value) { return __value == __old_value; };
|
||||
auto __pred = [&](const auto& __value) -> bool { return __value == __old_value; };
|
||||
return ranges::__replace_copy_if_impl(
|
||||
ranges::begin(__range), ranges::end(__range), std::move(__result), __pred, __new_value, __proj);
|
||||
}
|
||||
@@ -85,4 +88,6 @@ _LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_POP_MACROS
|
||||
|
||||
#endif // _LIBCPP___ALGORITHM_RANGES_REPLACE_COPY_H
|
||||
|
||||
Reference in New Issue
Block a user