Remove duplication of RUSTC_DEBUGINFO_MAP in rustc.rs

This commit is contained in:
Alex Crichton 2019-09-09 09:43:22 -07:00
parent 2d6f3fede0
commit 5abc4cd01c

View File

@ -164,10 +164,6 @@ fn main() {
} else {
cmd.arg("-C").arg(format!("debug-assertions={}", debug_assertions));
}
if let Ok(map) = env::var("RUSTC_DEBUGINFO_MAP") {
cmd.arg("--remap-path-prefix").arg(&map);
}
} else {
// Override linker if necessary.
if let Ok(host_linker) = env::var("RUSTC_HOST_LINKER") {