From 96415391dd25f7a21cbd261bb8bfd9f73a16c4ce Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Tue, 29 Aug 2023 03:11:24 -0700 Subject: [PATCH] Undef a macro that clashes with a UHDM class. The class `cover` in UHDM will not compile well if the `cover` macro from yosys kernel/log.h is defined. Undef it. --- systemverilog-plugin/uhdmastshared.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemverilog-plugin/uhdmastshared.h b/systemverilog-plugin/uhdmastshared.h index 56481b7b..1dcd2601 100644 --- a/systemverilog-plugin/uhdmastshared.h +++ b/systemverilog-plugin/uhdmastshared.h @@ -3,6 +3,10 @@ #include "frontends/ast/ast.h" +// Yosys defines a 'cover' macro in implicitly included kernel/log.h +// that clashes with cover-class in UHDM +#undef cover + #include #include #include