3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Disabled cover() for non-linux builds

This commit is contained in:
Clifford Wolf 2014-07-25 12:22:37 +02:00
parent a8706b73a2
commit c4e4f79a2a
3 changed files with 8 additions and 4 deletions

View file

@ -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 }; \