mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Build fixes for log cmd
This commit is contained in:
parent
c06de50f05
commit
db86aaa07d
|
@ -49,7 +49,7 @@ struct LogPass : public Pass {
|
||||||
log(" do not append a newline\n");
|
log(" do not append a newline\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
}
|
}
|
||||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
virtual void execute(std::vector<std::string> args, RTLIL::Design*)
|
||||||
{
|
{
|
||||||
size_t argidx;
|
size_t argidx;
|
||||||
bool to_stdout = false;
|
bool to_stdout = false;
|
||||||
|
@ -68,7 +68,7 @@ struct LogPass : public Pass {
|
||||||
}
|
}
|
||||||
for (; argidx < args.size(); argidx++)
|
for (; argidx < args.size(); argidx++)
|
||||||
text += args[argidx] + ' ';
|
text += args[argidx] + ' ';
|
||||||
if (!text.empty()) text.pop_back();
|
if (!text.empty()) text.resize(text.size()-1);
|
||||||
|
|
||||||
if (to_stdout) fprintf(stdout, (newline ? "%s\n" : "%s"), text.c_str());
|
if (to_stdout) fprintf(stdout, (newline ? "%s\n" : "%s"), text.c_str());
|
||||||
if (to_stderr) fprintf(stderr, (newline ? "%s\n" : "%s"), text.c_str());
|
if (to_stderr) fprintf(stderr, (newline ? "%s\n" : "%s"), text.c_str());
|
||||||
|
|
Loading…
Reference in a new issue