mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
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) {
|
if (f != NULL) {
|
||||||
frontend_register[args[0]]->execute(f, filename, args, design);
|
frontend_register[args[0]]->execute(f, filename, args, design);
|
||||||
} else if (filename == "-") {
|
} 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 {
|
} else {
|
||||||
if (!filename.empty())
|
if (!filename.empty())
|
||||||
args.push_back(filename);
|
args.push_back(filename);
|
||||||
|
|
Loading…
Reference in a new issue