[llvm] r255604 - Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 14 18:32:03 PST 2015
Author: mehdi_amini
Date: Mon Dec 14 20:32:03 2015
New Revision: 255604
URL: http://llvm.org/viewvc/llvm-project?rev=255604&view=rev
Log:
Add specific header for MSVC to be able to build with LLVM_ENABLE_THREADS=OFF
Follow-up to the ThreadPool library
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/include/llvm/Support/ThreadPool.h
Modified: llvm/trunk/include/llvm/Support/ThreadPool.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ThreadPool.h?rev=255604&r1=255603&r2=255604&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ThreadPool.h (original)
+++ llvm/trunk/include/llvm/Support/ThreadPool.h Mon Dec 14 20:32:03 2015
@@ -24,6 +24,12 @@
#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
More information about the llvm-commits
mailing list