aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/archdefs.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-12-27 10:32:23 +0000
committerDavid Shah <dave@ds0.me>2019-12-27 10:32:23 +0000
commitb6e2159cecdf79d0d94d0e6a9dda8cef6389cac1 (patch)
treeffab5ff786afd4802528503cc876ea9450fde49f /ecp5/archdefs.h
parentcea27dc84a6e2439e06b2a87937e8ff9c7cd1c74 (diff)
downloadnextpnr-b6e2159cecdf79d0d94d0e6a9dda8cef6389cac1.tar.gz
nextpnr-b6e2159cecdf79d0d94d0e6a9dda8cef6389cac1.tar.bz2
nextpnr-b6e2159cecdf79d0d94d0e6a9dda8cef6389cac1.zip
Work around Qt MOC issue with IdString enums
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/archdefs.h')
-rw-r--r--ecp5/archdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index 3cd92119..8faa41ed 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -52,6 +52,9 @@ struct DelayInfo
// -----------------------------------------------------------------------
+// https://bugreports.qt.io/browse/QTBUG-80789
+
+#ifndef Q_MOC_RUN
enum ConstIds
{
ID_NONE
@@ -65,6 +68,7 @@ enum ConstIds
#define X(t) static constexpr auto id_##t = IdString(ID_##t);
#include "constids.inc"
#undef X
+#endif
NPNR_PACKED_STRUCT(struct LocationPOD { int16_t x, y; });