Skip to content

Commit 54523b8

Browse files
committed
Fix rustc bootstrap test
1 parent e4ae9ef commit 54523b8

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

scripts/test_bootstrap.sh

+25-15
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@ git checkout -- .
1414
git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
1515

1616
git apply - <<EOF
17-
diff --git a/.gitmodules b/.gitmodules
18-
index 984113151de..c1e9d960d56 100644
19-
--- a/.gitmodules
20-
+++ b/.gitmodules
21-
@@ -34,10 +34,6 @@
22-
[submodule "src/doc/edition-guide"]
23-
path = src/doc/edition-guide
24-
url = https://github.com/rust-lang/edition-guide.git
25-
-[submodule "src/llvm-project"]
26-
- path = src/llvm-project
27-
- url = https://github.com/rust-lang/llvm-project.git
28-
- branch = rustc/11.0-2020-10-12
29-
[submodule "src/doc/embedded-book"]
30-
path = src/doc/embedded-book
31-
url = https://github.com/rust-embedded/book.git
17+
diff --git a/Cargo.toml b/Cargo.toml
18+
index 5bd1147cad5..10d68a2ff14 100644
19+
--- a/Cargo.toml
20+
+++ b/Cargo.toml
21+
@@ -111,5 +111,7 @@ rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
22+
# source code for this crate.
23+
backtrace = { path = "library/backtrace" }
24+
25+
+compiler_builtins = { path = "../build_sysroot/compiler-builtins" }
26+
+
27+
[patch."https://github.com/rust-lang/rust-clippy"]
28+
clippy_lints = { path = "src/tools/clippy/clippy_lints" }
3229
diff --git a/compiler/rustc_data_structures/Cargo.toml b/compiler/rustc_data_structures/Cargo.toml
3330
index 23e689fcae7..5f077b765b6 100644
3431
--- a/compiler/rustc_data_structures/Cargo.toml
@@ -41,6 +38,19 @@ index 23e689fcae7..5f077b765b6 100644
4138
4239
[target.'cfg(windows)'.dependencies]
4340
winapi = { version = "0.3", features = ["fileapi", "psapi"] }
41+
diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
42+
index d95b5b7f17f..00b6f0e3635 100644
43+
--- a/library/alloc/Cargo.toml
44+
+++ b/library/alloc/Cargo.toml
45+
@@ -8,7 +8,7 @@ edition = "2018"
46+
47+
[dependencies]
48+
core = { path = "../core" }
49+
-compiler_builtins = { version = "0.1.39", features = ['rustc-dep-of-std'] }
50+
+compiler_builtins = { version = "0.1.39", features = ['rustc-dep-of-std', 'no-asm'] }
51+
52+
[dev-dependencies]
53+
rand = "0.7"
4454
EOF
4555

4656
cat > config.toml <<EOF

0 commit comments

Comments
 (0)