Skip to content

Commit 0984aa7

Browse files
author
serge-sans-paille
committed
Fix conditional include in ThreadPool
Should fix https://lab.llvm.org/buildbot#builders/37/builds/10259
1 parent 03d0acc commit 0984aa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Support/ThreadPool.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
#include "llvm/Support/ThreadPool.h"
1414

1515
#include "llvm/Config/llvm-config.h"
16+
17+
#if LLVM_ENABLE_THREADS
1618
#include "llvm/Support/Threading.h"
19+
#else
20+
#include "llvm/Support/raw_ostream.h"
21+
#endif
1722

1823
using namespace llvm;
1924

0 commit comments

Comments
 (0)