aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-24 15:44:45 +0000
committerwhitequark <whitequark@whitequark.org>2020-06-25 14:03:37 +0000
commit1dc1164dce88fade762956c1067aeb97fa3c0f9a (patch)
tree3bef0e77b7686f2162ec91b84b161b89dc1ef252 /ecp5/arch.cc
parent23d19a254dd1168b5f68495c67751ad19791a2b7 (diff)
downloadnextpnr-1dc1164dce88fade762956c1067aeb97fa3c0f9a.tar.gz
nextpnr-1dc1164dce88fade762956c1067aeb97fa3c0f9a.tar.bz2
nextpnr-1dc1164dce88fade762956c1067aeb97fa3c0f9a.zip
CMake: rewrite chipdb handling from ground up.
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 3c00099f..f947783e 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -62,7 +62,7 @@ void IdString::initialize_arch(const BaseCtx *ctx)
static const ChipInfoPOD *get_chip_info(const RelPtr<ChipInfoPOD> *ptr) { return ptr->get(); }
-#if defined(_MSC_VER)
+#if defined(WIN32)
void load_chipdb();
#endif
@@ -97,7 +97,7 @@ void load_chipdb()
Arch::Arch(ArchArgs args) : args(args)
{
-#if defined(_MSC_VER) || defined(EXTERNAL_CHIPDB_ROOT)
+#if defined(WIN32) || defined(EXTERNAL_CHIPDB_ROOT)
load_chipdb();
#endif
#ifdef LFE5U_45F_ONLY