authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2021-07-19 13:28:03-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-08-21 15:17:08+03:00
logd57c0cc3bfeff9af297279759ec2b631e6d95140
tree18d7291e0ff6d402eee45e12e4f1d36f7fcad952
parent4c18da1ef3ef21033394041be21774bf13882b54

dragonfly: port libc++

Used https://github.com/DragonFlyBSD/DPorts/tree/master/devel/libc++/files for hints as to which patches were needed.

4 files changed, 12 insertions(+), 11 deletions(-)

lib/libcxx/include/__config+7-6
......@@ -122,7 +122,7 @@
122122# endif
123123// Feature macros for disabling pre ABI v1 features. All of these options
124124// are deprecated.
125# if defined(__FreeBSD__)
125# if defined(__FreeBSD__) || defined(__DragonFly__)
126126# define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
127127# endif
128128#endif
......@@ -366,7 +366,7 @@
366366# if __ANDROID_API__ >= 29
367367# define _LIBCPP_HAS_TIMESPEC_GET
368368# endif
369# elif defined(__Fuchsia__) || defined(__wasi__) || defined(__NetBSD__)
369# elif defined(__Fuchsia__) || defined(__wasi__) || defined(__NetBSD__) || defined(__DragonFly__)
370370# define _LIBCPP_HAS_ALIGNED_ALLOC
371371# define _LIBCPP_HAS_QUICK_EXIT
372372# define _LIBCPP_HAS_TIMESPEC_GET
......@@ -914,7 +914,7 @@ typedef unsigned int char32_t;
914914#endif
915915
916916#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_LIBCPP_MSVCRT_LIKE) || \
917 defined(__sun__) || defined(__NetBSD__) || defined(__CloudABI__)
917 defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__CloudABI__)
918918#define _LIBCPP_LOCALE__L_EXTENSIONS 1
919919#endif
920920
......@@ -925,7 +925,7 @@ typedef unsigned int char32_t;
925925# endif
926926#endif
927927
928#ifdef __FreeBSD__
928#if defined(__FreeBSD__) || defined(__DragonFly__)
929929#define _DECLARE_C99_LDBL_MATH 1
930930#endif
931931
......@@ -954,11 +954,11 @@ typedef unsigned int char32_t;
954954# define _LIBCPP_HAS_NO_ALIGNED_ALLOCATION
955955#endif
956956
957#if defined(__APPLE__) || defined(__FreeBSD__)
957#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
958958#define _LIBCPP_HAS_DEFAULTRUNELOCALE
959959#endif
960960
961#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__)
961#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__sun__)
962962#define _LIBCPP_WCTYPE_IS_MASK
963963#endif
964964
......@@ -1125,6 +1125,7 @@ extern "C" _LIBCPP_FUNC_VIS void __sanitizer_annotate_contiguous_container(
11251125 defined(__wasi__) || \
11261126 defined(__NetBSD__) || \
11271127 defined(__OpenBSD__) || \
1128 defined(__DragonFly__) || \
11281129 defined(__NuttX__) || \
11291130 defined(__linux__) || \
11301131 defined(__GNU__) || \
lib/libcxx/include/__locale+3-3
......@@ -35,7 +35,7 @@
3535# include <__support/newlib/xlocale.h>
3636#elif defined(__OpenBSD__)
3737# include <__support/openbsd/xlocale.h>
38#elif (defined(__APPLE__) || defined(__FreeBSD__) \
38#elif (defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) \
3939 || defined(__EMSCRIPTEN__) || defined(__IBMCPP__))
4040# include <xlocale.h>
4141#elif defined(__Fuchsia__)
......@@ -450,10 +450,10 @@ public:
450450 static const mask blank = _BLANK;
451451 static const mask __regex_word = 0x80;
452452# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_PRINT
453#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__)
453#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__) || defined(__DragonFly__)
454454# ifdef __APPLE__
455455 typedef __uint32_t mask;
456# elif defined(__FreeBSD__)
456# elif defined(__FreeBSD__) || defined(__DragonFly__)
457457 typedef unsigned long mask;
458458# elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
459459 typedef unsigned short mask;
lib/libcxx/include/locale+1-1
......@@ -223,7 +223,7 @@ _LIBCPP_PUSH_MACROS
223223
224224_LIBCPP_BEGIN_NAMESPACE_STD
225225
226#if defined(__APPLE__) || defined(__FreeBSD__)
226#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
227227# define _LIBCPP_GET_C_LOCALE 0
228228#elif defined(__CloudABI__) || defined(__NetBSD__)
229229# define _LIBCPP_GET_C_LOCALE LC_C_LOCALE
lib/libcxx/src/locale.cpp+1-1
......@@ -1133,7 +1133,7 @@ ctype<char>::classic_table() _NOEXCEPT
11331133const ctype<char>::mask*
11341134ctype<char>::classic_table() _NOEXCEPT
11351135{
1136#if defined(__APPLE__) || defined(__FreeBSD__)
1136#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
11371137 return _DefaultRuneLocale.__runetype;
11381138#elif defined(__NetBSD__)
11391139 return _C_ctype_tab_ + 1;