[llvm] 0984aa7 - Fix conditional include in ThreadPool

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 26 05:16:09 PST 2022


Author: serge-sans-paille
Date: 2022-01-26T14:16:01+01:00
New Revision: 0984aa70da1047677577c3a1eb0445fca90d8614

URL: https://github.com/llvm/llvm-project/commit/0984aa70da1047677577c3a1eb0445fca90d8614
DIFF: https://github.com/llvm/llvm-project/commit/0984aa70da1047677577c3a1eb0445fca90d8614.diff

LOG: Fix conditional include in ThreadPool

Should fix  https://lab.llvm.org/buildbot#builders/37/builds/10259

Added: 
    

Modified: 
    llvm/lib/Support/ThreadPool.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/ThreadPool.cpp b/llvm/lib/Support/ThreadPool.cpp
index bf2584950c4ac..9f92ae1c7a7c1 100644
--- a/llvm/lib/Support/ThreadPool.cpp
+++ b/llvm/lib/Support/ThreadPool.cpp
@@ -13,7 +13,12 @@
 #include "llvm/Support/ThreadPool.h"
 
 #include "llvm/Config/llvm-config.h"
+
+#if LLVM_ENABLE_THREADS
 #include "llvm/Support/Threading.h"
+#else
+#include "llvm/Support/raw_ostream.h"
+#endif
 
 using namespace llvm;
 


        


More information about the llvm-commits mailing list