Files
MINGW-packages/mingw-w64-rust/0004-unbundle-gcc.patch
U-BAMS\philippe.renon 4a7731d239 rust: Update to 1.62.0
2022-06-30 20:43:26 +02:00

47 lines
1.7 KiB
Diff

--- rustc-1.62.0-src/src/bootstrap/dist.rs.orig 2022-06-27 15:37:07.000000000 +0200
+++ rustc-1.62.0-src/src/bootstrap/dist.rs 2022-06-30 20:37:45.959726200 +0200
@@ -113,6 +113,7 @@
}
}
+#[allow(dead_code)]
fn find_files(files: &[&str], path: &[PathBuf]) -> Vec<PathBuf> {
let mut found = Vec::with_capacity(files.len());
@@ -129,6 +130,7 @@
found
}
+#[allow(dead_code)]
fn make_win_dist(
rust_root: &Path,
plat_root: &Path,
@@ -296,7 +298,7 @@
// thrown away (this contains the runtime DLLs included in the rustc package
// above) and the second argument is where to place all the MinGW components
// (which is what we want).
- make_win_dist(&tmpdir(builder), tarball.image_dir(), host, &builder);
+ // make_win_dist(&tmpdir(builder), tarball.image_dir(), host, &builder);
Some(tarball.generate())
}
@@ -342,7 +344,7 @@
// install will *also* include the rust-mingw package, which also needs
// licenses, so to be safe we just include it here in all MinGW packages.
if host.ends_with("pc-windows-gnu") {
- make_win_dist(tarball.image_dir(), &tmpdir(builder), host, builder);
+ // make_win_dist(tarball.image_dir(), &tmpdir(builder), host, builder);
tarball.add_dir(builder.src.join("src/etc/third-party"), "share/doc");
}
--- rustc-1.29.2-src/src/bootstrap/lib.rs.orig 2018-10-29 07:40:35.561580700 +0300
+++ rustc-1.29.2-src/src/bootstrap/lib.rs 2018-10-29 07:45:54.426140700 +0300
@@ -1278,6 +1278,7 @@
}
}
+ #[allow(dead_code)]
fn copy_to_folder(&self, src: &Path, dest_folder: &Path) {
let file_name = src.file_name().unwrap();
let dest = dest_folder.join(file_name);