about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-09-28 20:00:12 +0200
committerGitHub <noreply@github.com>2021-09-28 20:00:12 +0200
commit864290472fcb1deee2a4fb09a9df2864ce3bd1a4 (patch)
tree78514f270b1fe75739df1cc245e1dc70dc27c05b /src/bootstrap
parent1d71ba862309d59df710078a845c8772ffb22aba (diff)
parent90be409db0ef219bad25e38ec7b1902683389b07 (diff)
downloadrust-864290472fcb1deee2a4fb09a9df2864ce3bd1a4.tar.gz
rust-864290472fcb1deee2a4fb09a9df2864ce3bd1a4.zip
Rollup merge of #87260 - antoyo:libgccjit-codegen, r=Mark-Simulacrum
Libgccjit codegen

This PR introduces a subtree for a gcc-based codegen backend to the repository, per decision in https://github.com/rust-lang/compiler-team/issues/442. We do not yet expect to ship this backend on nightly or run tests in CI, but we do verify that the backend checks (i.e., `cargo check`) successfully.

Work is expected to progress primarily in https://github.com/rust-lang/rustc_codegen_gcc, with semi-regular upstreaming, like with other subtrees.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/check.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs
index f66f282bea9..28e7f1fdca7 100644
--- a/src/bootstrap/check.rs
+++ b/src/bootstrap/check.rs
@@ -243,11 +243,16 @@ impl Step for CodegenBackend {
     const DEFAULT: bool = true;
 
     fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
-        run.paths(&["compiler/rustc_codegen_cranelift", "rustc_codegen_cranelift"])
+        run.paths(&[
+            "compiler/rustc_codegen_cranelift",
+            "rustc_codegen_cranelift",
+            "compiler/rustc_codegen_gcc",
+            "rustc_codegen_gcc",
+        ])
     }
 
     fn make_run(run: RunConfig<'_>) {
-        for &backend in &[INTERNER.intern_str("cranelift")] {
+        for &backend in &[INTERNER.intern_str("cranelift"), INTERNER.intern_str("gcc")] {
             run.builder.ensure(CodegenBackend { target: run.target, backend });
         }
     }