================ @@ -744,6 +744,9 @@ getCompilationDataBase(int argc, char **argv, std::string &ErrorMessage) { return nullptr; } + // Only 1 threads is required if P1689 per file mode. + NumThreads = 1; ---------------- jansvoboda11 wrote:
Instead of setting `NumThreads` for the P1689 format, can we check if size of `Inputs` below and avoid creating the thread pool for any single-compilation database? https://github.com/llvm/llvm-project/pull/84285 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits