Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 15 Dec 2015 02:32:03 +0000 (02:32 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 15 Dec 2015 02:32:03 +0000 (02:32 +0000)
Follow-up to the ThreadPool library

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255604 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ThreadPool.h

index 56265499c3e5f035e70c457bcc2cbec555303d48..16f287e701dfdf8ee9fcfaf00361b6fb66ffd028 100644 (file)
 #include <queue>
 #include <utility>
 
+#ifdef _MSC_VER
+// concrt.h depends on eh.h for __uncaught_exception declaration
+// even if we disable exceptions.
+#include <eh.h>
+#endif
+
 namespace llvm {
 
 /// A ThreadPool for asynchronous parallel execution on a defined number of