We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
copy_src_dirs
1 parent 8800ec1 commit 24f5cc4Copy full SHA for 24f5cc4
src/bootstrap/src/core/build_steps/dist.rs
@@ -916,6 +916,12 @@ fn copy_src_dirs(
916
exclude_dirs: &[&str],
917
dst_dir: &Path,
918
) {
919
+ // Iterating, filtering and copying a large number of directories can be quite slow.
920
+ // Avoid doing it in dry run (and thus also tests).
921
+ if builder.config.dry_run() {
922
+ return;
923
+ }
924
+
925
fn filter_fn(exclude_dirs: &[&str], dir: &str, path: &Path) -> bool {
926
let spath = match path.to_str() {
927
Some(path) => path,
0 commit comments