-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #119470 - bjorn3:sync_cg_clif-2023-12-31, r=bjorn3
Subtree sync for rustc_codegen_cranelift The main highlight this time is a fix for rust-lang/rustc_codegen_cranelift#1437. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
- Loading branch information
Showing
6 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "nightly-2023-12-24" | ||
channel = "nightly-2023-12-31" | ||
components = ["rust-src", "rustc-dev", "llvm-tools"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/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 | ||
# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as | ||
# the LLVM backend isn't compiled in here. | ||
export CG_CLIF_FORCE_GNU_AS=1 | ||
|
||
|
@@ -11,20 +11,19 @@ export CG_CLIF_FORCE_GNU_AS=1 | |
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 --filter=tree:0 || true | ||
git clone --quiet https://github.com/rust-lang/rust.git --filter=tree:0 || true | ||
pushd rust | ||
git fetch | ||
git checkout -- . | ||
git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')" | ||
git checkout --no-progress -- . | ||
git checkout --no-progress "$(rustc -V | cut -d' ' -f3 | tr -d '(')" | ||
|
||
git submodule update --quiet --init src/tools/cargo library/backtrace library/stdarch | ||
|
||
git -c user.name=Dummy -c [email protected] -c commit.gpgSign=false \ | ||
am ../patches/*-stdlib-*.patch | ||
|
||
cat > config.toml <<EOF | ||
change-id = 115898 | ||
[llvm] | ||
ninja = false | ||
change-id = 999999 | ||
[build] | ||
rustc = "$(pwd)/../dist/bin/rustc-clif" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters