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:
2
lib/libcxx/include/string.h
vendored
2
lib/libcxx/include/string.h
vendored
@@ -65,7 +65,7 @@ size_t strlen(const char* s);
|
||||
// <string.h>. This macro can be defined by users if their C library provides
|
||||
// the right signature.
|
||||
#if defined(__CORRECT_ISO_CPP_STRING_H_PROTO) || defined(_LIBCPP_MSVCRT) || defined(_STRING_H_CPLUSPLUS_98_CONFORMANCE_)
|
||||
#define _LIBCPP_STRING_H_HAS_CONST_OVERLOADS
|
||||
# define _LIBCPP_STRING_H_HAS_CONST_OVERLOADS
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus) && !defined(_LIBCPP_STRING_H_HAS_CONST_OVERLOADS) && defined(_LIBCPP_PREFERRED_OVERLOAD)
|
||||
|
||||
Reference in New Issue
Block a user