diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 9dceb904b6..a6d26abace 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -2,6 +2,7 @@ RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"

 SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \
             file://hardcodepaths.patch;patchdir=${RUSTSRC} \
+            file://remap-path.patch;patchdir=${RUSTSRC} \
             file://getrandom-open64.patch;patchdir=${RUSTSRC} \
             file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=${RUSTSRC} \
             file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
diff --git a/meta/recipes-devtools/rust/rust_1.69.0.bb b/meta/recipes-devtools/rust/rust_1.69.0.bb
index 83f9bec68a..4603be0f38 100644
--- a/meta/recipes-devtools/rust/rust_1.69.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.69.0.bb
@@ -47,6 +47,12 @@ setup_cargo_environment () {

 inherit rust-target-config

+addtask do_postpatch after do_patch before do_compile
+
+do_postpatch () {
+    sed -i "1383s|PWD|${WORKDIR}|g" ${WORKDIR}/rustc-1.69.0-src/src/bootstrap/builder.rs
+}
+
 do_rust_setup_snapshot () {
     for installer in "${WORKDIR}/rust-snapshot-components/"*"/install.sh"; do
         "${installer}" --prefix="${WORKDIR}/rust-snapshot" --disable-ldconfig
