Skip to content

Commit

Permalink
Revert change to apply_patches to fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Sep 23, 2024
1 parent b40fe1e commit 9456ff1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compiler/rustc_codegen_cranelift/build_system/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,12 @@ pub(crate) fn apply_patches(dirs: &Dirs, crate_name: &str, source_dir: &Path, ta
eprintln!("[COPY] {crate_name} source");

ensure_empty_dir(target_dir);
copy_dir_recursively(source_dir, target_dir);
if crate_name == "stdlib" {
fs::create_dir(target_dir.join("library")).unwrap();
copy_dir_recursively(&source_dir.join("library"), &target_dir.join("library"));
} else {
copy_dir_recursively(source_dir, target_dir);
}

init_git_repo(target_dir);

Expand Down

0 comments on commit 9456ff1

Please sign in to comment.