3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-08 12:11:24 +00:00

driver: allow --no-version still write things like Generated by Yosys

This commit is contained in:
Emil J. Tywoniak 2025-05-07 11:34:23 +02:00
parent d7affb8821
commit 90a2c92370
21 changed files with 36 additions and 40 deletions

View file

@ -99,8 +99,7 @@ struct InternalStatsPass : public Pass {
if (json_mode) {
log("{\n");
if (yosys_write_versions)
log(" \"creator\": %s,\n", json11::Json(yosys_version_str).dump().c_str());
log(" \"creator\": %s,\n", json11::Json(yosys_maybe_version()).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());

View file

@ -444,8 +444,7 @@ struct StatPass : public Pass {
if (json_mode) {
log("{\n");
if (yosys_write_versions)
log(" \"creator\": %s,\n", json11::Json(yosys_version_str).dump().c_str());
log(" \"creator\": %s,\n", json11::Json(yosys_maybe_version()).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());