mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-14 00:16:41 +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
|
@ -99,7 +99,8 @@ struct InternalStatsPass : public Pass {
|
|||
|
||||
if (json_mode) {
|
||||
log("{\n");
|
||||
log(" \"creator\": %s,\n", json11::Json(yosys_version_str).dump().c_str());
|
||||
if (yosys_write_versions)
|
||||
log(" \"creator\": %s,\n", json11::Json(yosys_version_str).dump().c_str());
|
||||
std::stringstream invocation;
|
||||
std::copy(args.begin(), args.end(), std::ostream_iterator<std::string>(invocation, " "));
|
||||
log(" \"invocation\": %s,\n", json11::Json(invocation.str()).dump().c_str());
|
||||
|
|
|
@ -444,7 +444,8 @@ struct StatPass : public Pass {
|
|||
|
||||
if (json_mode) {
|
||||
log("{\n");
|
||||
log(" \"creator\": %s,\n", json11::Json(yosys_version_str).dump().c_str());
|
||||
if (yosys_write_versions)
|
||||
log(" \"creator\": %s,\n", json11::Json(yosys_version_str).dump().c_str());
|
||||
std::stringstream invocation;
|
||||
std::copy(args.begin(), args.end(), std::ostream_iterator<std::string>(invocation, " "));
|
||||
log(" \"invocation\": %s,\n", json11::Json(invocation.str()).dump().c_str());
|
||||
|
|
|
@ -690,9 +690,11 @@ struct SatHelper
|
|||
fprintf(f, "$date\n");
|
||||
fprintf(f, " %s\n", stime);
|
||||
fprintf(f, "$end\n");
|
||||
fprintf(f, "$version\n");
|
||||
fprintf(f, " Generated by %s\n", yosys_version_str);
|
||||
fprintf(f, "$end\n");
|
||||
if (yosys_write_versions) {
|
||||
fprintf(f, "$version\n");
|
||||
fprintf(f, " Generated by %s\n", yosys_version_str);
|
||||
fprintf(f, "$end\n");
|
||||
}
|
||||
fprintf(f, "$comment\n");
|
||||
fprintf(f, " Generated from SAT problem in module %s (declared at %s)\n",
|
||||
module->name.c_str(), module_fname.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue