mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-09 20:50:51 +00:00
driver: allow --no-version still write things like Generated by Yosys
This commit is contained in:
parent
d7affb8821
commit
90a2c92370
21 changed files with 36 additions and 40 deletions
|
@ -252,7 +252,7 @@ int main(int argc, char **argv)
|
|||
options.add_options("logging")
|
||||
("Q", "suppress printing of banner (copyright, disclaimer, version)")
|
||||
("T", "suppress printing of footer (log hash, version, timing statistics)")
|
||||
("no-version", "suppress writing Yosys version in command outputs")
|
||||
("no-version", "suppress writing out Yosys version anywhere excluding -V, --version")
|
||||
("q,quiet", "quiet operation. Only write warnings and error messages to console. " \
|
||||
"Use this option twice to also quiet warning messages")
|
||||
("v,verbose", "print log headers up to <level> to the console. " \
|
||||
|
@ -693,7 +693,7 @@ int main(int argc, char **argv)
|
|||
stats_divider.c_str(), ru_buffer.ru_utime.tv_sec + 1e-6 * ru_buffer.ru_utime.tv_usec,
|
||||
ru_buffer.ru_stime.tv_sec + 1e-6 * ru_buffer.ru_stime.tv_usec, meminfo.c_str());
|
||||
#endif
|
||||
log("%s\n", yosys_version_str);
|
||||
log("%s\n", yosys_maybe_version());
|
||||
|
||||
int64_t total_ns = 0;
|
||||
std::set<tuple<int64_t, int, std::string>> timedat;
|
||||
|
@ -733,7 +733,7 @@ int main(int argc, char **argv)
|
|||
log_error("Can't open performance log file for writing: %s\n", strerror(errno));
|
||||
|
||||
fprintf(f, "{\n");
|
||||
fprintf(f, " \"generator\": \"%s\",\n", yosys_version_str);
|
||||
fprintf(f, " \"generator\": \"%s\",\n", yosys_maybe_version());
|
||||
fprintf(f, " \"total_ns\": %" PRIu64 ",\n", total_ns);
|
||||
fprintf(f, " \"passes\": {");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue