From c7a529743560c37973787e4ab2433cb7485afb86 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 5 Aug 2022 14:02:14 +0100 Subject: [PATCH] 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 --- meta/recipes-devtools/rust/rust.inc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.2