mirror of https://github.com/YosysHQ/yosys.git
workaround for OpenBSD 'stdin' implementation
This commit is contained in:
parent
f7e9056a93
commit
75a5d6bd1e
|
@ -306,7 +306,8 @@ void Frontend::frontend_call(RTLIL::Design *design, FILE *f, std::string filenam
|
|||
if (f != NULL) {
|
||||
frontend_register[args[0]]->execute(f, filename, args, design);
|
||||
} else if (filename == "-") {
|
||||
frontend_register[args[0]]->execute(stdin, "<stdin>", args, design);
|
||||
FILE *f_stdin = stdin; // workaround for OpenBSD 'stdin' implementation
|
||||
frontend_register[args[0]]->execute(f_stdin, "<stdin>", args, design);
|
||||
} else {
|
||||
if (!filename.empty())
|
||||
args.push_back(filename);
|
||||
|
|
Loading…
Reference in New Issue