5 source scripts/config.sh
7 echo "[SETUP] Rust fork"
8 git clone https://github.com/rust-lang/rust.git || true
12 git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
15 diff --git a/Cargo.toml b/Cargo.toml
16 index 5bd1147cad5..10d68a2ff14 100644
19 @@ -111,5 +111,7 @@ rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
20 rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
21 rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
23 +compiler_builtins = { path = "../build_sysroot/compiler-builtins" }
25 [patch."https://github.com/rust-lang/rust-clippy"]
26 clippy_lints = { path = "src/tools/clippy/clippy_lints" }
27 diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
28 index d95b5b7f17f..00b6f0e3635 100644
29 --- a/library/alloc/Cargo.toml
30 +++ b/library/alloc/Cargo.toml
31 @@ -8,7 +8,7 @@ edition = "2018"
34 core = { path = "../core" }
35 -compiler_builtins = { version = "0.1.40", features = ['rustc-dep-of-std'] }
36 +compiler_builtins = { version = "0.1.46", features = ['rustc-dep-of-std', 'no-asm'] }
43 cat > config.toml <<EOF
48 rustc = "$(pwd)/../build/bin/cg_clif"
49 cargo = "$(rustup which cargo)"
54 codegen-backends = ["cranelift"]