diff options
| author | antoyo <antoyo@users.noreply.github.com> | 2024-01-11 18:29:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-11 18:29:15 -0500 |
| commit | 5032d33628eab91ef6ba752e1f810e95c4e9ffe2 (patch) | |
| tree | e57f75a83c1635869bf2169c4f367589854bd0f0 | |
| parent | 47373be7933e7316a93098c5a0d8f820b1e82980 (diff) | |
| parent | 45137ddd32681be7a0cd0bf0465f672f176099e2 (diff) | |
| download | rust-5032d33628eab91ef6ba752e1f810e95c4e9ffe2.tar.gz rust-5032d33628eab91ef6ba752e1f810e95c4e9ffe2.zip | |
Merge pull request #411 from rust-lang/fix/sysroot-copy-path
Fix the destination path of the sysroot copy
| -rw-r--r-- | build_system/src/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build_system/src/build.rs b/build_system/src/build.rs index d264aac7eff..3149560b458 100644 --- a/build_system/src/build.rs +++ b/build_system/src/build.rs @@ -165,11 +165,11 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu )?; // Copy the source files to the sysroot (Rust for Linux needs this). - let sysroot_src_path = "sysroot/lib/rustlib/src/rust"; + let sysroot_src_path = start_dir.join("sysroot/lib/rustlib/src/rust"); fs::create_dir_all(&sysroot_src_path).map_err(|error| { format!( "Failed to create directory `{}`: {:?}", - sysroot_src_path, error + sysroot_src_path.display(), error ) })?; run_command( |
