about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-03 17:29:10 +0200
committerGitHub <noreply@github.com>2023-08-03 17:29:10 +0200
commitc0c911b697bf18a2e1102696487b9f47c0e6eeb9 (patch)
tree9e75f2fea3930c9c5b0df32d16bb72d6221393d9
parenteada0614abb58bef1cb286a7b930bf25c0890715 (diff)
parentc6232b14fdb9d7020421746bd75468bc80b95be3 (diff)
downloadrust-c0c911b697bf18a2e1102696487b9f47c0e6eeb9.tar.gz
rust-c0c911b697bf18a2e1102696487b9f47c0e6eeb9.zip
Rollup merge of #114415 - Kobzol:bootstrap-check-vendor-gcc, r=ozkanonur
Skip checking of `rustc_codegen_gcc` with vendoring enabled

`rustc_codegen_gcc` currently cannot be vendored, which [breaks](https://github.com/rust-lang/rust/issues/112393) `x.py check` with vendoring enabled. Until the vendoring issue is resolved, it would be nice if `x.py check` could succeed (and just skip `gcc`) with `vendor = true`. With this PR, it does.

Related issue: https://github.com/rust-lang/rust/issues/112393

r? bootstrap
-rw-r--r--src/bootstrap/check.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index 2c51ed5408e..bdefc41c9c7 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -307,6 +307,12 @@ impl Step for CodegenBackend {
     }
 
     fn run(self, builder: &Builder<'_>) {
+        // FIXME: remove once https://github.com/rust-lang/rust/issues/112393 is resolved
+        if builder.build.config.vendor && &self.backend == "gcc" {
+            println!("Skipping checking of `rustc_codegen_gcc` with vendoring enabled.");
+            return;
+        }
+
         let compiler = builder.compiler(builder.top_stage, builder.config.build);
         let target = self.target;
         let backend = self.backend;