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-11-16 21:15:07 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-11-16 21:15:07 +0000
commitdfc669b74c214ad5afeb94211ebe1fd70ac8d43a (patch)
tree613e044b12d74b89aba2e64a15f535fc1e4139fc /scripts/setup_rust_fork.sh
parent497c17a3906f26c184dc530b2211d4e737b210da (diff)
downloadrust-dfc669b74c214ad5afeb94211ebe1fd70ac8d43a.tar.gz
rust-dfc669b74c214ad5afeb94211ebe1fd70ac8d43a.zip
Merge commit 'def04540a4e2541b995195c752c751295606a388' into sync_cg_clif-2023-11-16
Diffstat (limited to 'scripts/setup_rust_fork.sh')
-rw-r--r--scripts/setup_rust_fork.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/setup_rust_fork.sh b/scripts/setup_rust_fork.sh
index bbb8a010d96..731828caae2 100644
--- a/scripts/setup_rust_fork.sh
+++ b/scripts/setup_rust_fork.sh
@@ -1,15 +1,17 @@
 #!/usr/bin/env bash
 set -e
 
+# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as we
+# the LLVM backend isn't compiled in here.
+export CG_CLIF_FORCE_GNU_AS=1
+
 # Compiletest expects all standard library paths to start with /rustc/FAKE_PREFIX.
 # CG_CLIF_STDLIB_REMAP_PATH_PREFIX will cause cg_clif's build system to pass
 # --remap-path-prefix to handle this.
-# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as we
-# the LLVM backend isn't compiled in here.
-CG_CLIF_FORCE_GNU_AS=1 CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build
+CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build
 
 echo "[SETUP] Rust fork"
-git clone https://github.com/rust-lang/rust.git || true
+git clone https://github.com/rust-lang/rust.git --filter=tree:0 || true
 pushd rust
 git fetch
 git checkout -- .