From: Alex Kiernan Date: Wed, 28 Dec 2022 15:23:30 +0000 (+0000) Subject: cargo: Extend DEBUG_PREFIX_MAP to cover vendor X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c874ef5eafb88d361b96e014739d7a3a640536d9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cargo: Extend DEBUG_PREFIX_MAP to cover vendor The cargo build builds vendored libgit and curl, but these exist outside ${S} which DEBUG_PREFIX_MAP covers. Signed-off-by: Alex Kiernan Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/cargo/cargo_1.66.0.bb b/meta/recipes-devtools/cargo/cargo_1.66.0.bb index 6c167c0c5f0..fe8049b68c9 100644 --- a/meta/recipes-devtools/cargo/cargo_1.66.0.bb +++ b/meta/recipes-devtools/cargo/cargo_1.66.0.bb @@ -20,6 +20,8 @@ EXCLUDE_FROM_WORLD = "1" inherit cargo pkgconfig +DEBUG_PREFIX_MAP += "-fdebug-prefix-map=${RUSTSRC}/vendor=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" + do_cargo_setup_snapshot () { ${WORKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig # Need to use uninative's loader if enabled/present since the library paths