Skip to content

Commit bfb04ae

Browse files
GMNGeoffreyjoker-eph
authored andcommitted
Unconditionally #include <future>
This unbreaks building with `LLVM_ENABLE_THREADS=0`. Since llvm@069919c9ba33 usage of `std::promise` is not guarded by `LLVM_ENABLE_THREADS`, so this header must be unconditionally included. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D89758
1 parent 2f8dd26 commit bfb04ae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/ExecutionEngine/Orc/Core.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
#include "llvm/Support/MSVCErrorWorkarounds.h"
1717

1818
#include <condition_variable>
19-
#if LLVM_ENABLE_THREADS
2019
#include <future>
21-
#endif
2220

2321
#define DEBUG_TYPE "orc"
2422

0 commit comments

Comments
 (0)