1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-27 23:56:05 +00:00

Fix PSTL backend (names) in __config_site

Upstream libc++ renamed these macros in the following commit:
https://github.com/llvm/llvm-project/commit/d423d80

We had the correct names in the libcxx* makefiles, so no ABI changes are
required.

Reported by c2qd and also provided the __config_site diff. OK robert@
This commit is contained in:
rsadowski
2026-02-07 15:59:32 +00:00
parent 95dc80d3cd
commit ab79de310e
3 changed files with 5 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2025/12/06 09:27:54 robert Exp $
# $OpenBSD: Makefile,v 1.10 2026/02/07 15:59:32 rsadowski Exp $
.include <bsd.own.mk>
@@ -93,7 +93,6 @@ CPPFLAGS+= -Wall -DLIBCXXABI -I${HDRDIR} -I${SRCDIR} -I${AHDRDIR} \
CPPFLAGS+= -D_LIBCPP_BUILDING_LIBRARY
CPPFLAGS+= -DLIBCXX_BUILDING_LIBCXXABI
CPPFLAGS+= -D_LIBCPP_HAS_NO_TIME_ZONE_DATABASE
CPPFLAGS+= -D_LIBCPP_PSTL_BACKEND_STD_THREAD
CXXFLAGS+= -nostdlib -nostdinc++
.if empty(CXXFLAGS:M-std=*)

View File

@@ -34,9 +34,9 @@
// PSTL backends
/* #undef _LIBCPP_PSTL_CPU_BACKEND_SERIAL */
#define _LIBCPP_PSTL_CPU_BACKEND_THREAD
/* #undef _LIBCPP_PSTL_CPU_BACKEND_LIBDISPATCH */
/* #undef _LIBCPP_PSTL_BACKEND_SERIAL */
#define _LIBCPP_PSTL_BACKEND_STD_THREAD
/* #undef _LIBCPP_PSTL_BACKEND_LIBDISPATCH */
// Hardening.
#define _LIBCPP_HARDENING_MODE_DEFAULT 2

View File

@@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2025/08/21 15:26:58 rsadowski Exp $
# $OpenBSD: Makefile,v 1.7 2026/02/07 15:59:32 rsadowski Exp $
.include <bsd.own.mk>
@@ -54,7 +54,6 @@ CPPFLAGS+= -Wall -I${SHDRDIR} -I${HDRDIR} -I${UHDRDIR} \
CPPFLAGS+= -D_LIBUNWIND_IS_NATIVE_ONLY
CPPFLAGS+= -D_LIBCXXABI_BUILDING_LIBRARY
CPPFLAGS+= -D_LIBCPP_BUILDING_LIBRARY
CPPFLAGS+= -D_LIBCPP_PSTL_BACKEND_STD_THREAD
CPPFLAGS+= -D_LIBCPP_HARDENING_MODE=2
CPPFLAGS+= -DNDEBUG
CFLAGS+= -nostdlib -funwind-tables