From: Richard Purdie Date: Fri, 5 Aug 2022 13:02:14 +0000 (+0100) Subject: rust: Ensure buildpaths are handled in debug symbols correctly X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7a529743560c37973787e4ab2433cb7485afb86;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rust: Ensure buildpaths are handled in debug symbols correctly To ensure buildpaths aren't encoded in the debug symbol output, ensure we pass our prefix remapping compiler options in. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc index d0f7467a887..7e302b59929 100644 --- a/meta/recipes-devtools/rust/rust.inc +++ b/meta/recipes-devtools/rust/rust.inc @@ -177,6 +177,8 @@ rust_runx () { unset CXXFLAGS unset CPPFLAGS + export RUSTFLAGS="${RUST_DEBUG_REMAP}" + # Copy the natively built llvm-config into the target so we can run it. Horrible, # but works! if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} ]; then