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