mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-11 17:54:44 +00:00
driver: add --no-version to suppress writing Yosys version in command outputs
This commit is contained in:
parent
f60bbe64ac
commit
d7affb8821
14 changed files with 31 additions and 13 deletions
|
@ -252,6 +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")
|
||||
("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. " \
|
||||
|
@ -318,6 +319,7 @@ int main(int argc, char **argv)
|
|||
if (result.count("A")) call_abort = true;
|
||||
if (result.count("Q")) print_banner = false;
|
||||
if (result.count("T")) print_stats = false;
|
||||
if (result.count("no-version")) yosys_write_versions = false;
|
||||
if (result.count("V")) {
|
||||
std::cout << yosys_version_str << std::endl;
|
||||
exit(0);
|
||||
|
|
|
@ -81,6 +81,7 @@ YOSYS_NAMESPACE_BEGIN
|
|||
|
||||
int autoidx = 1;
|
||||
int yosys_xtrace = 0;
|
||||
bool yosys_write_versions = true;
|
||||
RTLIL::Design *yosys_design = NULL;
|
||||
CellTypes yosys_celltypes;
|
||||
|
||||
|
|
|
@ -274,6 +274,7 @@ inline int GetSize(RTLIL::Wire *wire);
|
|||
|
||||
extern int autoidx;
|
||||
extern int yosys_xtrace;
|
||||
extern bool yosys_write_versions;
|
||||
|
||||
RTLIL::IdString new_id(std::string file, int line, std::string func);
|
||||
RTLIL::IdString new_id_suffix(std::string file, int line, std::string func, std::string suffix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue