Skip to content

Commit 6612110

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.6-beta.1 [skip ci]
1 parent 82dd500 commit 6612110

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

libcxx/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ set(LIBCXX_LIBRARY_VERSION "${LIBCXX_ABI_VERSION}.0" CACHE STRING
201201
For example, -DLIBCXX_LIBRARY_VERSION=x.y will result in the library being named
202202
libc++.x.y.dylib, along with the usual symlinks pointing to that. On Apple platforms,
203203
this also controls the linker's 'current_version' property.")
204-
set(LIBCXX_ABI_NAMESPACE "__${LIBCXX_ABI_VERSION}" CACHE STRING "The inline ABI namespace used by libc++. It defaults to __n where `n` is the current ABI version.")
204+
set(default_abi_namespace "__${LIBCXX_ABI_VERSION}")
205+
if(NOT LIBCXX_PFP STREQUAL "none")
206+
set(default_abi_namespace "${default_abi_namespace}_pfp_${LIBCXX_PFP}")
207+
endif()
208+
set(LIBCXX_ABI_NAMESPACE "${default_abi_namespace}" CACHE STRING "The inline ABI namespace used by libc++. It defaults to __n where `n` is the current ABI version.")
205209
if (NOT LIBCXX_ABI_NAMESPACE MATCHES "__.*")
206210
message(FATAL_ERROR "LIBCXX_ABI_NAMESPACE must be a reserved identifier, got '${LIBCXX_ABI_NAMESPACE}'.")
207211
endif()

libcxx/include/__config

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -484,21 +484,8 @@ typedef __char32_t char32_t;
484484
# define _LIBCPP_EXCEPTIONS_SIG e
485485
# endif
486486

487-
# if !_LIBCPP_HAS_EXCEPTIONS
488-
# define _LIBCPP_EXCEPTIONS_SIG n
489-
# else
490-
# define _LIBCPP_EXCEPTIONS_SIG e
491-
# endif
492-
493-
# if defined(__POINTER_FIELD_PROTECTION__)
494-
# define _LIBCPP_PFP_SIG p
495-
# else
496-
# define _LIBCPP_PFP_SIG
497-
# endif
498-
499487
# define _LIBCPP_ODR_SIGNATURE \
500-
_LIBCPP_CONCAT(_LIBCPP_CONCAT(_LIBCPP_CONCAT(_LIBCPP_HARDENING_SIG, _LIBCPP_EXCEPTIONS_SIG), _LIBCPP_PFP_SIG), \
501-
_LIBCPP_VERSION)
488+
_LIBCPP_CONCAT(_LIBCPP_CONCAT(_LIBCPP_HARDENING_SIG, _LIBCPP_EXCEPTIONS_SIG), _LIBCPP_VERSION)
502489

503490
// This macro marks a symbol as being hidden from libc++'s ABI. This is achieved
504491
// on two levels:

0 commit comments

Comments
 (0)