aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/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 /ice40/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 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 645e93cb..545066ce 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -46,7 +46,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
@@ -82,7 +82,7 @@ void load_chipdb()
#endif
Arch::Arch(ArchArgs args) : args(args)
{
-#if defined(_MSC_VER) || defined(EXTERNAL_CHIPDB_ROOT)
+#if defined(WIN32) || defined(EXTERNAL_CHIPDB_ROOT)
load_chipdb();
#endif