Fix compilation with `NPNR_DISABLE_THREADS`.

This commit is contained in:
bin 2026-08-09 19:21:54 +01:00 committed by Catherine
parent c73affb3dc
commit 62e659ed67
1 changed files with 2 additions and 0 deletions

View File

@ -133,7 +133,9 @@ template <typename FrontendType> struct GenericFrontend
m.prefix = "";
m.path = top;
#ifndef NPNR_DISABLE_THREADS
std::lock_guard<std::mutex> lock(ctx->mutex);
#endif
ctx->top_module = top;
// Do the actual import, starting from the top level module