Disabled cover() for non-linux builds
This commit is contained in:
@@ -749,7 +749,7 @@ int main(int argc, char **argv)
|
||||
delete yosys_design;
|
||||
yosys_design = NULL;
|
||||
|
||||
#ifndef NDEBUG
|
||||
#ifdef COVER_ACTIVE
|
||||
if (getenv("YOSYS_COVER_DIR") || getenv("YOSYS_COVER_FILE"))
|
||||
{
|
||||
char filename_buffer[4096];
|
||||
|
||||
@@ -75,7 +75,8 @@ void log_cell(RTLIL::Cell *cell, std::string indent = "");
|
||||
// This is the magic behind the code coverage counters
|
||||
// ---------------------------------------------------
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if defined(__linux__) && !defined(NDEBUG)
|
||||
#define COVER_ACTIVE
|
||||
|
||||
#define cover(_id) do { \
|
||||
static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1))) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \
|
||||
|
||||
Reference in New Issue
Block a user