mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix/explicitly set restat
This commit is contained in:
parent
782645d92e
commit
ace2e5ef6a
1 changed files with 4 additions and 3 deletions
|
@ -261,9 +261,10 @@ impl BuildStatement<'_> {
|
|||
panic!("{} must generate at least one output", action.name());
|
||||
}
|
||||
stmt.variables.push(("description".into(), group.into()));
|
||||
if action.check_output_timestamps() {
|
||||
stmt.rule_variables.push(("restat".into(), "1".into()));
|
||||
}
|
||||
stmt.rule_variables.push((
|
||||
"restat".into(),
|
||||
(action.check_output_timestamps() as u32).to_string(),
|
||||
));
|
||||
if action.generator() {
|
||||
stmt.rule_variables.push(("generator".into(), "1".into()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue