Skip to content

Commit 10480be

Browse files
authored
Merge pull request #20 from RalfJung/no-more-copy
copying extra files should not be needed any more
2 parents 5d54a58 + 6401873 commit 10480be

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
rust:
1919
- nightly
2020
# Check a ~3 months old nightly as "oldest supported version"
21-
- nightly-2023-10-01
21+
- nightly-2024-01-01
2222
# We want to run all of the above on Linux, macOS, windows-msvc, windows-gnu.
2323
# The semantics of combining `include` with other things in GHA are very strange
2424
# so this seems like the best way of doing that.

src/lib.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -553,28 +553,6 @@ panic = 'unwind'
553553
fs::copy(&entry, staging_lib_dir.join(entry.file_name().unwrap()))
554554
.context("failed to copy cargo out file")?;
555555
}
556-
// If we are doing a full build, copy any other files and directories that need copying from
557-
// the original sysroot.
558-
if matches!(self.mode, BuildMode::Build) {
559-
let extra_copy_paths = &["bin"];
560-
let dist_sysroot_target_dir = dist_sysroot()?
561-
.join("lib")
562-
.join("rustlib")
563-
.join(&target_name);
564-
for path in extra_copy_paths {
565-
let src = dist_sysroot_target_dir.join(path);
566-
if src.exists() {
567-
let dst = staging_dir.path().join(path);
568-
symlink_or_copy_dir(&src, &dst).with_context(|| {
569-
format!(
570-
"failed to symlink/copy `{src}` to `{dst}`",
571-
src = src.display(),
572-
dst = dst.display(),
573-
)
574-
})?;
575-
}
576-
}
577-
}
578556

579557
// Write the hash file (into the staging dir).
580558
fs::write(

0 commit comments

Comments
 (0)