[jemalloc] Fix exception specification error for hosts using musl libc (#45045)

This commit is contained in:
Lily Wang
2025-04-17 22:10:32 +00:00
committed by GitHub
parent 2eb117a2fd
commit 73fbcf784b
5 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/include/jemalloc/jemalloc_macros.h.in b/include/jemalloc/jemalloc_macros.h.in
index ebb3137..05d996b 100644
--- a/include/jemalloc/jemalloc_macros.h.in
+++ b/include/jemalloc/jemalloc_macros.h.in
@@ -142,7 +142,7 @@
# define JEMALLOC_COLD
#endif
-#if (defined(__APPLE__) || defined(__FreeBSD__)) && !defined(JEMALLOC_NO_RENAME)
+#if (defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || (defined(__linux__) && !defined(__GLIBC__))) && !defined(JEMALLOC_NO_RENAME)
# define JEMALLOC_SYS_NOTHROW
#else
# define JEMALLOC_SYS_NOTHROW JEMALLOC_NOTHROW

View File

@@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
fix-configure-ac.patch
preprocessor.patch
fix-host-use-libc.patch # https://github.com/jemalloc/jemalloc/commit/45249cf5a9cfa13c2c62e68e272a391721523b4b
)
if(VCPKG_TARGET_IS_WINDOWS)
set(opts "ac_cv_search_log=none required" "--without-private-namespace")

View File

@@ -1,7 +1,7 @@
{
"name": "jemalloc",
"version": "5.3.0",
"port-version": 2,
"port-version": 3,
"description": "jemalloc is a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support",
"homepage": "https://jemalloc.net/",
"license": "BSD-2-Clause",

View File

@@ -3918,7 +3918,7 @@
},
"jemalloc": {
"baseline": "5.3.0",
"port-version": 2
"port-version": 3
},
"jhasse-poly2tri": {
"baseline": "2023-12-27",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9f72ec0f582114964b0cc3cff8c436e00e64da65",
"version": "5.3.0",
"port-version": 3
},
{
"git-tree": "c89a63053caf864aff15f36cf9fa0e6b2ded6bfc",
"version": "5.3.0",