mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-11 09:44:44 +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
|
@ -82,6 +82,13 @@ YOSYS_NAMESPACE_BEGIN
|
|||
int autoidx = 1;
|
||||
int yosys_xtrace = 0;
|
||||
bool yosys_write_versions = true;
|
||||
const char* yosys_maybe_version() {
|
||||
if (yosys_write_versions)
|
||||
return yosys_version_str;
|
||||
else
|
||||
return "Yosys";
|
||||
}
|
||||
|
||||
RTLIL::Design *yosys_design = NULL;
|
||||
CellTypes yosys_celltypes;
|
||||
|
||||
|
@ -145,7 +152,7 @@ void yosys_banner()
|
|||
log(" | Copyright (C) 2012 - 2025 Claire Xenia Wolf <claire@yosyshq.com> |\n");
|
||||
log(" | Distributed under an ISC-like license, type \"license\" to see terms |\n");
|
||||
log(" \\----------------------------------------------------------------------------/\n");
|
||||
log(" %s\n", yosys_version_str);
|
||||
log(" %s\n", yosys_maybe_version());
|
||||
}
|
||||
|
||||
#if !defined(YOSYS_DISABLE_SPAWN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue