3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-13 07:56:40 +00:00

driver: add --no-version to suppress writing Yosys version in command outputs

This commit is contained in:
Emil J. Tywoniak 2025-05-05 13:12:08 +02:00
parent f60bbe64ac
commit d7affb8821
14 changed files with 31 additions and 13 deletions

View file

@ -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());