]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/config.rs
Allow building std with cranelift
[rust.git] / src / bootstrap / config.rs
index 960fbdf75380448983b1f3650b9fd66b95dc3df8..41c8f17ee1570e85ee19af5804457e4e1d2b3e41 100644 (file)
@@ -1610,6 +1610,10 @@ pub fn submodules(&self, rust_info: &GitInfo) -> bool {
         self.submodules.unwrap_or(rust_info.is_managed_git_subrepository())
     }
 
+    pub fn default_codegen_backend(&self) -> Option<Interned<String>> {
+        self.rust_codegen_backends.get(0).cloned()
+    }
+
     /// Returns the commit to download, or `None` if we shouldn't download CI artifacts.
     fn download_ci_rustc_commit(&self, download_rustc: Option<StringOrBool>) -> Option<String> {
         // If `download-rustc` is not set, default to rebuilding.