llvm / llvm/circt

[circt-verilog-lsp-server] No `llvm::StdThreadPool` if LLVM_ENABLE_THREADS is not defined

Open
#9,166 0 comments 0 reactions 1 assignee View on GitHub

@Scheremo is already working on this.

Since Oct 31, 2025.

Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

```
In file included from /workspace/circt/lib/Tools/circt-verilog-lsp-server/LSPServer.cpp:10:
/workspace/circt/lib/Tools/circt-verilog-lsp-server/Utils/PendingChanges.h:107:9: error: no type named 'StdThreadPool' in namespace 'llvm'
107 | llvm::StdThreadPool pool;
```

looking at LLVM's `ThreadPool.h`:

```
#if LLVM_ENABLE_THREADS
/// A ThreadPool implementation using std::threads.
///
/// The pool keeps a vector of threads alive, waiting on a condition variable
/// for some work to become available.
class LLVM_ABI StdThreadPool : public ThreadPoolInterface {
```

So the build fails with `-DLLVM_ENABLE_THREADS=OFF`.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.