Skip to content

Commit 95d232a

Browse files
committed
add cache_never method
1 parent 993fe51 commit 95d232a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/src/utils/exec.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ impl<'a> BootstrapCommand {
101101
self.should_cache
102102
}
103103

104+
pub fn cache_never(&mut self) -> &mut Self {
105+
self.should_cache = false;
106+
self
107+
}
108+
104109
pub fn args<I, S>(&mut self, args: I) -> &mut Self
105110
where
106111
I: IntoIterator<Item = S>,
@@ -201,7 +206,7 @@ impl<'a> BootstrapCommand {
201206
// We don't know what will happen with the returned command, so we need to mark this
202207
// command as executed proactively.
203208
self.mark_as_executed();
204-
self.should_cache = false;
209+
self.cache_never();
205210
&mut self.command
206211
}
207212

0 commit comments

Comments
 (0)