about summary refs log tree commit diff
path: root/scripts/setup_rust_fork.sh
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-01-24 18:56:42 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-01-24 18:56:42 +0100
commitb67610f98a53aec3bbd772a5e9efd058bacc2891 (patch)
tree07adfdff9b0c52bd51d5c3cb5073e4952b46eb78 /scripts/setup_rust_fork.sh
parent739938d7a8981e0b2852d5560b7da51eab66b452 (diff)
downloadrust-b67610f98a53aec3bbd772a5e9efd058bacc2891.tar.gz
rust-b67610f98a53aec3bbd772a5e9efd058bacc2891.zip
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
Diffstat (limited to 'scripts/setup_rust_fork.sh')
-rw-r--r--scripts/setup_rust_fork.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/setup_rust_fork.sh b/scripts/setup_rust_fork.sh
index 6c64b7de7da..a08e80dd19a 100644
--- a/scripts/setup_rust_fork.sh
+++ b/scripts/setup_rust_fork.sh
@@ -10,7 +10,7 @@ git fetch
 git checkout -- .
 git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
 
-git am ../patches/*-sysroot-*.patch
+git -c user.name=Dummy -c user.email=dummy@example.com am ../patches/*-sysroot-*.patch
 
 git apply - <<EOF
 diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
@@ -25,8 +25,8 @@ index d95b5b7f17f..00b6f0e3635 100644
 +compiler_builtins = { version = "0.1.66", features = ['rustc-dep-of-std', 'no-asm'] }
 
  [dev-dependencies]
- rand = "0.7"
- rand_xorshift = "0.2"
+ rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
+ rand_xorshift = "0.3.0"
 EOF
 
 cat > config.toml <<EOF
@@ -51,7 +51,7 @@ popd
 # FIXME remove once inline asm is fully supported
 export RUSTFLAGS="$RUSTFLAGS --cfg=rustix_use_libc"
 
-export CFG_VIRTUAL_RUST_SOURCE_BASE_DIR="$(cd build_sysroot/sysroot_src; pwd)"
+export CFG_VIRTUAL_RUST_SOURCE_BASE_DIR="$(cd download/sysroot/sysroot_src; pwd)"
 
 # Allow the testsuite to use llvm tools
 host_triple=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")