From 62e659ed6748e9f60b2a4aa25dd4fe79a9605881 Mon Sep 17 00:00:00 2001 From: bin Date: Sun, 9 Aug 2026 19:21:54 +0100 Subject: [PATCH] Fix compilation with `NPNR_DISABLE_THREADS`. --- frontend/frontend_base.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/frontend_base.h b/frontend/frontend_base.h index 5f0e6481..800f4ade 100644 --- a/frontend/frontend_base.h +++ b/frontend/frontend_base.h @@ -133,7 +133,9 @@ template struct GenericFrontend m.prefix = ""; m.path = top; +#ifndef NPNR_DISABLE_THREADS std::lock_guard lock(ctx->mutex); +#endif ctx->top_module = top; // Do the actual import, starting from the top level module