Skip to content

Commit e1995a6

Browse files
authored
Merge pull request #90 from jwasinger/return-code
CLI: return a zero exit code when a module is not modified during translation
2 parents ccafc5b + 2a13c01 commit e1995a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chisel/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@ fn execute_module(context: &ModuleContext, module: &mut Module) -> bool {
261261
println!("\t{}: {}", name, module_status_msg);
262262

263263
if let Ok(result) = ret {
264-
result
264+
if !result && is_translator {
265+
true
266+
} else {
267+
result
268+
}
265269
} else {
266270
false
267271
}

0 commit comments

Comments
 (0)