From: Mehdi Amini Date: Tue, 15 Dec 2015 02:32:03 +0000 (+0000) Subject: Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b9f514b1bf24a7b370f03868189ed6946ead2ed7;p=oota-llvm.git Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF Follow-up to the ThreadPool library From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255604 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ThreadPool.h b/include/llvm/Support/ThreadPool.h index 56265499c3e..16f287e701d 100644 --- a/include/llvm/Support/ThreadPool.h +++ b/include/llvm/Support/ThreadPool.h @@ -24,6 +24,12 @@ #include #include +#ifdef _MSC_VER +// concrt.h depends on eh.h for __uncaught_exception declaration +// even if we disable exceptions. +#include +#endif + namespace llvm { /// A ThreadPool for asynchronous parallel execution on a defined number of