Skip to content

Commit 8a11b81

Browse files
Merge commit 'ffb7eef504d4d9507583825e8e411d283c4e357e'
2 parents ad2e756 + ffb7eef commit 8a11b81

7 files changed

Lines changed: 14 additions & 10 deletions

File tree

‎compiler/rustc_codegen_gcc/.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252

5353
- name: Install packages
5454
# `llvm-14-tools` is needed to install the `FileCheck` binary which is used for asm tests.
55-
run: sudo apt-get install ninja-build ripgrep llvm-14-tools llvm
55+
run: |
56+
sudo apt-get update
57+
sudo apt-get install ninja-build ripgrep llvm-14-tools llvm
5658
5759
- name: Install the libraries needed to build librsvg
5860
if: ${{ contains(matrix.commands, '--projects') }}

‎compiler/rustc_codegen_gcc/.github/workflows/stdarch.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,16 @@ jobs:
9696
if: ${{ !matrix.cargo_runner }}
9797
run: |
9898
# FIXME: remove --skip test_tile_ and --skip --skip test__tile when it's implemented.
99-
./y.sh test --release --stdarch-tests -- --skip test_tile_ --skip test__tile
99+
# FIXME: remove --skip test_mm_srav_epi64 when it's fixed upstream.
100+
./y.sh test --release --stdarch-tests -- --skip test_tile_ --skip test__tile --skip test_mm_srav_epi64
100101
101102
- name: Run stdarch tests
102103
if: ${{ matrix.cargo_runner }}
103104
run: |
104105
# FIXME: these tests fail when the sysroot is compiled with LTO because of a missing symbol in proc-macro.
105106
# FIXME: remove --skip test_tile_ and --skip --skip test__tile when it's implemented.
106-
STDARCH_TEST_SKIP_FUNCTION="xsave,xsaveopt,xsave64,xsaveopt64" STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a --skip test_tile_ --skip test__tile
107+
# FIXME: remove --skip test_mm_srav_epi64 when it's fixed upstream.
108+
STDARCH_TEST_SKIP_FUNCTION="xsave,xsaveopt,xsave64,xsaveopt64" STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a --skip test_tile_ --skip test__tile --skip test_mm_srav_epi64
107109
108110
# Summary job for the merge queue.
109111
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!

‎compiler/rustc_codegen_gcc/Readme.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ If you compiled `cg_gcc` in debug mode (aka you didn't pass `--release` to `./y.
154154
You can do the same manually (although we don't recommend it):
155155

156156
```bash
157-
$ LIBRARY_PATH="[gcc-path value]" LD_LIBRARY_PATH="[gcc-path value]" rustc +$(cat $CG_GCCJIT_DIR/rust-toolchain | grep 'channel' | cut -d '=' -f 2 | sed 's/"//g' | sed 's/ //g') -Cpanic=abort -Zcodegen-backend=$CG_GCCJIT_DIR/target/release/librustc_codegen_gcc.so --sysroot $CG_GCCJIT_DIR/build_sysroot/sysroot my_crate.rs
157+
$ LIBRARY_PATH="[gcc-path value]" LD_LIBRARY_PATH="[gcc-path value]" rustc +$(cat $CG_GCCJIT_DIR/rust-toolchain.toml | grep 'channel' | cut -d '=' -f 2 | sed 's/"//g' | sed 's/ //g') -Cpanic=abort -Zcodegen-backend=$CG_GCCJIT_DIR/target/release/librustc_codegen_gcc.so --sysroot $CG_GCCJIT_DIR/build_sysroot/sysroot my_crate.rs
158158
```
159159

160160
## Environment variables

‎compiler/rustc_codegen_gcc/build_system/src/abi_test.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn run() -> Result<(), String> {
3434
.map_err(|err| format!("Git clone failed with message: {err:?}!"))?;
3535
// Configure abi-cafe to use the exact same rustc version we use - this is crucial.
3636
// Otherwise, the concept of ABI compatibility becomes meanignless.
37-
std::fs::copy("rust-toolchain", "clones/abi-cafe/rust-toolchain")
37+
std::fs::copy("rust-toolchain.toml", "clones/abi-cafe/rust-toolchain.toml")
3838
.expect("Could not copy toolchain configs!");
3939
// Get the backend path.
4040
// We will use the *debug* build of the backend - it has more checks enabled.

‎compiler/rustc_codegen_gcc/build_system/src/utils.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ fn rustc_version_info_inner(
242242
}
243243

244244
pub fn get_toolchain() -> Result<String, String> {
245-
let content = match fs::read_to_string("rust-toolchain") {
245+
let content = match fs::read_to_string("rust-toolchain.toml") {
246246
Ok(content) => content,
247-
Err(_) => return Err("No `rust-toolchain` file found".to_string()),
247+
Err(_) => return Err("No `rust-toolchain.toml` file found".to_string()),
248248
};
249249
match content
250250
.split('\n')
@@ -259,7 +259,7 @@ pub fn get_toolchain() -> Result<String, String> {
259259
.next()
260260
{
261261
Some(toolchain) => Ok(toolchain.to_string()),
262-
None => Err("Couldn't find `channel` in `rust-toolchain` file".to_string()),
262+
None => Err("Couldn't find `channel` in `rust-toolchain.toml` file".to_string()),
263263
}
264264
}
265265

‎compiler/rustc_codegen_gcc/doc/tips.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ COLLECT_NO_DEMANGLE=1
4141
### How to use a custom-build rustc
4242

4343
* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).
44-
* Clean and rebuild the codegen with `debug-current` in the file `rust-toolchain`.
44+
* Clean and rebuild the codegen with `debug-current` in the file `rust-toolchain.toml`.
4545

4646
### How to use a custom sysroot source path
4747

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2026-09-18"
2+
channel = "nightly-2026-09-24"
33
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]

0 commit comments

Comments
 (0)