4 ./y.rs build --no-unstable-features
6 echo "[SETUP] Rust fork"
7 git clone https://github.com/rust-lang/rust.git || true
11 git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
13 git am ../patches/*-sysroot-*.patch
16 diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
17 index d95b5b7f17f..00b6f0e3635 100644
18 --- a/library/alloc/Cargo.toml
19 +++ b/library/alloc/Cargo.toml
20 @@ -8,7 +8,7 @@ edition = "2018"
23 core = { path = "../core" }
24 -compiler_builtins = { version = "0.1.40", features = ['rustc-dep-of-std'] }
25 +compiler_builtins = { version = "0.1.66", features = ['rustc-dep-of-std', 'no-asm'] }
32 cat > config.toml <<EOF
39 rustc = "$(pwd)/../dist/rustc-clif"
40 cargo = "$(rustup which cargo)"
45 codegen-backends = ["cranelift"]
51 # FIXME remove once inline asm is fully supported
52 export RUSTFLAGS="$RUSTFLAGS --cfg=rustix_use_libc"
54 export CFG_VIRTUAL_RUST_SOURCE_BASE_DIR="$(cd build_sysroot/sysroot_src; pwd)"
56 # Allow the testsuite to use llvm tools
57 host_triple=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")
58 export LLVM_BIN_DIR="$(rustc --print sysroot)/lib/rustlib/$host_triple/bin"