about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-09-23 11:32:18 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-09-23 11:32:18 +0000
commit3a3a6347bb97171cd79c1dca5be7eb35e1675cc5 (patch)
treed66232063be9d9bce0a52058650d806e4baf415c
parent6d35b4c9a04580366fd800692a5b5db79d766530 (diff)
parent9d8572d33b22b0e045a0f485eb5c11ae4af12a30 (diff)
downloadrust-3a3a6347bb97171cd79c1dca5be7eb35e1675cc5.tar.gz
rust-3a3a6347bb97171cd79c1dca5be7eb35e1675cc5.zip
Merge branch 'sync_from_rust'
-rw-r--r--build_system/prepare.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_system/prepare.rs b/build_system/prepare.rs
index b9cfcd99a77..30bd7ae26a1 100644
--- a/build_system/prepare.rs
+++ b/build_system/prepare.rs
@@ -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);