summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-05 14:02:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 15:44:20 +0100
commit1e8f4ee56ad1c75ec9d52c4f8458de137b70d9c1 (patch)
tree2f2734b2dc85b94da7b1cd5d6b10b4ed00319175 /meta/recipes-devtools
parente1dcfcdbfa65c8f5316a55abd1cb5e6762b609e9 (diff)
downloadpoky-1e8f4ee56ad1c75ec9d52c4f8458de137b70d9c1.tar.gz
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. (From OE-Core rev: c7a529743560c37973787e4ab2433cb7485afb86) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/rust.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc
index d0f7467a88..7e302b5992 100644
--- a/meta/recipes-devtools/rust/rust.inc
+++ b/meta/recipes-devtools/rust/rust.inc
@@ -177,6 +177,8 @@ rust_runx () {
177 unset CXXFLAGS 177 unset CXXFLAGS
178 unset CPPFLAGS 178 unset CPPFLAGS
179 179
180 export RUSTFLAGS="${RUST_DEBUG_REMAP}"
181
180 # Copy the natively built llvm-config into the target so we can run it. Horrible, 182 # Copy the natively built llvm-config into the target so we can run it. Horrible,
181 # but works! 183 # but works!
182 if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} ]; then 184 if [ ${RUST_ALTERNATE_EXE_PATH_NATIVE} != ${RUST_ALTERNATE_EXE_PATH} ]; then