diff mbox series

[meta-oe] jemalloc: fix always_inline build failure

Message ID 20260423013251.1874006-2-Xiaozhan.Li.CN@windriver.com
State Under Review
Headers show
Series [meta-oe] jemalloc: fix always_inline build failure | expand

Commit Message

Xiaozhan Li April 23, 2026, 1:32 a.m. UTC
Enable debug build flag in jemalloc to avoid error as below:
inlining failed in call to 'always_inline' 'heap_ph_cmp':
function not considered for inlining

Signed-off-by: Xiaozhan Li <Xiaozhan.Li.CN@windriver.com>
---
 meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb
index aa1f417604..edaaea26b6 100644
--- a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb
+++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb
@@ -29,6 +29,8 @@  EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_"
 # For some reason VERSION file populated only in tarball distribution.
 # Adding jemalloc version since this recipe is using source code from git tag
 EXTRA_OECONF:append = " --with-version=${PV_LONG} --enable-xmalloc"
+# Enable jemalloc debug build flag if DEBUG_BUILD is enabled
+EXTRA_OECONF:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '--enable-debug=yes', '', d)}"
 
 do_install:append() {
 	sed -i -e 's@${STAGING_DIR_HOST}@@g' \