Skip to content

Commit 826a20b

Browse files
authored
Merge pull request rust-lang#436 from GuillaumeGomez/cleanup-patches
Move `crates_patches` and `cross_patches` into the `patches` folder
2 parents 6afabce + ebac107 commit 826a20b

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@ perf.data.old
1010
/build_sysroot/sysroot_src
1111
/build_sysroot/Cargo.lock
1212
/build_sysroot/test_target/Cargo.lock
13-
/rust
14-
/simple-raytracer
15-
/regex
16-
/rand
1713
gimple*
1814
*asm
1915
res
2016
test-backend
21-
gcc_path
22-
cross_gcc_path
2317
projects
2418
benchmarks
2519
tools/llvm-project

build_system/src/prepare.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn prepare_libcore(
9595
)?;
9696
if cross_compile {
9797
walk_dir(
98-
"cross_patches",
98+
"patches/cross_patches",
9999
|_| Ok(()),
100100
|file_path: &Path| {
101101
patches.push(file_path.to_path_buf());
@@ -161,7 +161,7 @@ where
161161
run_command(&[&"git", &"checkout", &checkout_commit], Some(&repo_path))?;
162162
let filter = format!("-{}-", clone_result.repo_name);
163163
walk_dir(
164-
"crate_patches",
164+
"patches/crate_patches",
165165
|_| Ok(()),
166166
|file_path| {
167167
let patch = file_path.as_os_str().to_str().unwrap();

0 commit comments

Comments
 (0)