Another build fix by americanrouter (via reddit)
authorClifford Wolf <clifford@clifford.at>
Mon, 11 Aug 2014 13:55:41 +0000 (15:55 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 11 Aug 2014 13:55:41 +0000 (15:55 +0200)
kernel/log.cc

index 09673dc2e2464ac2e36b81aa1495378468e8687d..1f082603956a9a5459676b1db1f6e8240076aaa2 100644 (file)
@@ -238,6 +238,7 @@ void log_cell(RTLIL::Cell *cell, std::string indent)
 // ---------------------------------------------------
 // This is the magic behind the code coverage counters
 // ---------------------------------------------------
+#ifdef COVER_ACTIVE
 
 std::map<std::string, std::pair<std::string, int>> extra_coverage_data;
 
@@ -283,5 +284,7 @@ std::map<std::string, std::pair<std::string, int>> get_coverage_data()
        return coverage_data;
 }
 
+#endif
+
 YOSYS_NAMESPACE_END