diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-25 12:22:37 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-25 12:27:36 +0200 |
commit | c4e4f79a2a2fd5530fa2677245f9361c7b04df70 (patch) | |
tree | 5791a429c88f429c63893d9ac91590ddc4b07a3d /passes/cmds/cover.cc | |
parent | a8706b73a2c14c6b34e4fb7136866c0bc959acbb (diff) | |
download | yosys-c4e4f79a2a2fd5530fa2677245f9361c7b04df70.tar.gz yosys-c4e4f79a2a2fd5530fa2677245f9361c7b04df70.tar.bz2 yosys-c4e4f79a2a2fd5530fa2677245f9361c7b04df70.zip |
Disabled cover() for non-linux builds
Diffstat (limited to 'passes/cmds/cover.cc')
-rw-r--r-- | passes/cmds/cover.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/passes/cmds/cover.cc b/passes/cmds/cover.cc index 0a96c0b23..ac72ba53a 100644 --- a/passes/cmds/cover.cc +++ b/passes/cmds/cover.cc @@ -71,6 +71,9 @@ struct CoverPass : public Pass { log(" gawk '{ p[$3] = $1; c[$3] += $2; } END { for (i in p)\n"); log(" printf \"%%-60s %%10d %%s\\n\", p[i], c[i], i; }' {files} | sort -k3\n"); log("\n"); + log("\n"); + log("Coverage counters are only available in debug builds of Yosys for Linux.\n"); + log("\n"); } virtual void execute(std::vector<std::string> args, RTLIL::Design *design) { @@ -113,7 +116,7 @@ struct CoverPass : public Pass { log("\n"); } -#ifndef NDEBUG +#ifdef COVER_ACTIVE for (auto &it : get_coverage_data()) { if (!patterns.empty()) { for (auto &p : patterns) @@ -131,7 +134,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."); + log_cmd_error("Coverage counters are only available in debug builds of Yosys for Linux.\n"); #endif for (auto f : out_files) |