diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 14:02:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:41:37 +0100 |
commit | c7a529743560c37973787e4ab2433cb7485afb86 (patch) | |
tree | 70dd8f30b611a9518194210b89956d01281675b3 /meta | |
parent | 1c5ab57ddda393631ce2da97ef5a876a2020d51f (diff) | |
download | openembedded-core-contrib-c7a529743560c37973787e4ab2433cb7485afb86.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 2 |
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 () { 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 |