]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cargo: Extend DEBUG_PREFIX_MAP to cover vendor
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 28 Dec 2022 15:23:30 +0000 (15:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Dec 2022 23:53:23 +0000 (23:53 +0000)
The cargo build builds vendored libgit and curl, but these exist outside
${S} which DEBUG_PREFIX_MAP covers.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cargo/cargo_1.66.0.bb

index 6c167c0c5f0b6f5aa286822c345b9faddc056cfc..fe8049b68c9b47906c801d6cd5c7325d9d5a030c 100644 (file)
@@ -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