3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Made "cover" a compile-time option (disabled by default)

This commit is contained in:
Clifford Wolf 2014-11-06 09:39:55 +01:00
parent 80869531b9
commit a346c0bf2b
5 changed files with 10 additions and 6 deletions

View file

@ -128,7 +128,7 @@ struct CoverPass : public Pass {
log("\n");
}
#ifdef COVER_ACTIVE
#ifdef YOSYS_ENABLE_COVER
for (auto &it : get_coverage_data()) {
if (!patterns.empty()) {
for (auto &p : patterns)
@ -146,7 +146,7 @@ struct CoverPass : public Pass {
for (auto f : out_files)
fclose(f);
log_cmd_error("Coverage counters are only available in debug builds of Yosys for Linux.\n");
log_cmd_error("This version of Yosys was not built with support for code coverage counters.\n");
#endif
for (auto f : out_files)