Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/builder/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ impl Builder<'_> {
// rustc creates absolute paths (in part bc of the `rust-src` unremap
// and for working directory) so let's remap the build directory as well.
format!("{}={map_to}", self.build.src.display()),
// remap OUT_DIR so they don't leak into artifacs.
Comment thread
paradoxicalguy marked this conversation as resolved.
Outdated
format!("{}={map_to}/out", self.build.out.display()),
]
.join("\t");
cargo.env("RUSTC_DEBUGINFO_MAP", map);
Expand All @@ -1102,6 +1104,8 @@ impl Builder<'_> {
// rustc creates absolute paths (in part bc of the `rust-src` unremap
// and for working directory) so let's remap the build directory as well.
format!("{}={map_to}", self.build.src.display()),
// remap OUT_DIR so they don't leak into artifacts.
format!("{}={map_to}/out", self.build.out.display()),
]
.join("\t");
cargo.env("RUSTC_DEBUGINFO_MAP", map);
Expand Down
Loading