]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/util.rs
Rollup merge of #100892 - sunfishcode:wasi-stdio-asfd, r=joshtriplett
[rust.git] / src / bootstrap / util.rs
index 1895e2901489e187aa39fa6cf8ddae5711afd78b..3a00e258e00e5b142ac82b3e73ad6f21c7e7ce61 100644 (file)
@@ -258,6 +258,10 @@ pub fn current() -> CiEnv {
         }
     }
 
+    pub fn is_ci() -> bool {
+        Self::current() != CiEnv::None
+    }
+
     /// If in a CI environment, forces the command to run with colors.
     pub fn force_coloring_in_ci(self, cmd: &mut Command) {
         if self != CiEnv::None {