mirror of
https://github.com/YosysHQ/yosys
synced 2026-02-24 09:11:19 +00:00
abc: handle ABC script errors instead of hanging
This commit is contained in:
parent
35321cd292
commit
f1fc704c84
2 changed files with 13 additions and 0 deletions
|
|
@ -1152,6 +1152,12 @@ bool read_until_abc_done(abc_output_filter &filt, int fd, DeferredLogs &logs) {
|
|||
// Ignore any leftover output, there should only be a prompt perhaps
|
||||
return true;
|
||||
}
|
||||
// If ABC aborted the sourced script, it returns to the prompt and will
|
||||
// never print YOSYS_ABC_DONE. Treat this as a failed run, not a hang.
|
||||
if (line.substr(0, 7) == "Error: ") {
|
||||
logs.log_error("ABC: %s", line.c_str());
|
||||
return false;
|
||||
}
|
||||
filt.next_line(line);
|
||||
line.clear();
|
||||
start = p + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue