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 /kernel/log.h | |
parent | a8706b73a2c14c6b34e4fb7136866c0bc959acbb (diff) |
Disabled cover() for non-linux builds
Diffstat (limited to 'kernel/log.h')
-rw-r--r-- | kernel/log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/log.h b/kernel/log.h index 18ea528a..1658800d 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -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 }; \ |