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:
parent
d7affb8821
commit
90a2c92370
21 changed files with 36 additions and 40 deletions
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue