From cfb19ace19c111d9bb75007dd1350bc2fac88587 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Thu, 11 Dec 2025 14:26:57 -0500 Subject: [PATCH 1/2] Document new gcc.download-ci-gcc option --- src/tests/codegen-backend-tests/cg_gcc.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/tests/codegen-backend-tests/cg_gcc.md b/src/tests/codegen-backend-tests/cg_gcc.md index 4325cc587..7a1c5b9a9 100644 --- a/src/tests/codegen-backend-tests/cg_gcc.md +++ b/src/tests/codegen-backend-tests/cg_gcc.md @@ -77,6 +77,26 @@ will be downloaded from CI or built locally. The default value is `true`, which will download GCC from CI if there are no local changes to the GCC sources and the given host target is available on CI. +## Providing your own GCC + +There are cases where you will want to provide yourself the `libgccjit.so` file. +One such case is when you want to cross-compile `rustc` to another target since GCC is not a multi-target compiler. +To support this use case, there is the bootstrap option `gcc.libgccjit-libs-dir`. +This option override `gcc.download-ci-gcc`, meaning `libgccjit.so` won't be downloaded or built locally by bootstrap. +The directory structure of this directory is `//libgccjit.so`, for instance: + +``` +. +├── m68k-unknown-linux-gnu +│ └── m68k-unknown-linux-gnu +│ └── libgccjit.so +└── x86_64-unknown-linux-gnu + ├── m68k-unknown-linux-gnu + │ └── libgccjit.so + └── x86_64-unknown-linux-gnu + └── libgccjit.so +``` + ## Running tests of the backend itself In addition to running the compiler's test suites using the GCC codegen backend, you can also run the test suite of the backend itself. From 2e576e558f379d6f3acc4d90bfead5226d5f3cf3 Mon Sep 17 00:00:00 2001 From: The rustc-josh-sync Cronjob Bot Date: Tue, 16 Dec 2025 03:59:09 +0000 Subject: [PATCH 2/2] Prepare for merging from rust-lang/rust This updates the rust-version file to cec70080fd441d16e9fb08a0d1d1a04c72d1ed25. --- rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-version b/rust-version index 4bcbec1a9..71a84e2bd 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -ce63e5d9ea20f15a70c6fdc4d4de7aee352fd965 +cec70080fd441d16e9fb08a0d1d1a04c72d1ed25