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