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:
@@ -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=*)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user