Skip to content

Commit 5032d33

Browse files
authored
Merge pull request #411 from rust-lang/fix/sysroot-copy-path
Fix the destination path of the sysroot copy
2 parents 47373be + 45137dd commit 5032d33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_system/src/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu
165165
)?;
166166

167167
// Copy the source files to the sysroot (Rust for Linux needs this).
168-
let sysroot_src_path = "sysroot/lib/rustlib/src/rust";
168+
let sysroot_src_path = start_dir.join("sysroot/lib/rustlib/src/rust");
169169
fs::create_dir_all(&sysroot_src_path).map_err(|error| {
170170
format!(
171171
"Failed to create directory `{}`: {:?}",
172-
sysroot_src_path, error
172+
sysroot_src_path.display(), error
173173
)
174174
})?;
175175
run_command(

0 commit comments

Comments
 (0)