]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Auto merge of #78790 - Gankra:rust-src-vendor, r=Mark-Simulacrum
[rust.git] / src / bootstrap / lib.rs
index 4d3d945ed411e892a050d5f8e48372d16645117b..e7af8b56d563366846e4dec4d160b9078dca750e 100644 (file)
@@ -332,6 +332,10 @@ impl Mode {
     pub fn is_tool(&self) -> bool {
         matches!(self, Mode::ToolBootstrap | Mode::ToolRustc | Mode::ToolStd)
     }
+
+    pub fn must_support_dlopen(&self) -> bool {
+        matches!(self, Mode::Std | Mode::Codegen)
+    }
 }
 
 impl Build {