aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-12-07 23:10:08 +0000
committerGitHub <noreply@github.com>2018-12-07 23:10:08 +0000
commit98d2fc6b101c8f8e4e3404cd083243da7bf2dfb2 (patch)
treeb103b19c99f71a092e0b31966785bd7e598b9c2d
parentd790d0bb91261939a784fe0f86ce6fa2f6245e55 (diff)
parente8c03a0dd73cf289d458b2a0b0f6d19ce29efa32 (diff)
downloadnextpnr-98d2fc6b101c8f8e4e3404cd083243da7bf2dfb2.tar.gz
nextpnr-98d2fc6b101c8f8e4e3404cd083243da7bf2dfb2.tar.bz2
nextpnr-98d2fc6b101c8f8e4e3404cd083243da7bf2dfb2.zip
Merge pull request #172 from YosysHQ/hashfix
timing_opt: Fix generic build
-rw-r--r--common/timing_opt.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/timing_opt.cc b/common/timing_opt.cc
index a451bfa0..c0968db7 100644
--- a/common/timing_opt.cc
+++ b/common/timing_opt.cc
@@ -60,7 +60,7 @@ template <> struct hash<std::pair<int, NEXTPNR_NAMESPACE_PREFIX BelId>>
return seed;
}
};
-
+#ifndef ARCH_GENERIC
template <> struct hash<std::pair<NEXTPNR_NAMESPACE_PREFIX IdString, NEXTPNR_NAMESPACE_PREFIX BelId>>
{
std::size_t
@@ -72,6 +72,7 @@ template <> struct hash<std::pair<NEXTPNR_NAMESPACE_PREFIX IdString, NEXTPNR_NAM
return seed;
}
};
+#endif
} // namespace std
NEXTPNR_NAMESPACE_BEGIN