diff options
author | Zachary Turner <zturner@google.com> | 2015-05-28 19:56:43 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-05-28 19:56:43 +0000 |
commit | c48ec9d0ffd4eaca0d7abbf70059428f1e46fd4f (patch) | |
tree | a6081c8ce9f06576b63057bfb1e85b36006313b1 /lldb/unittests/Host/SocketTest.cpp | |
parent | 8d3197f65741d4e2282b6f97b4f68c83563a0722 (diff) | |
download | bcm5719-llvm-c48ec9d0ffd4eaca0d7abbf70059428f1e46fd4f.tar.gz bcm5719-llvm-c48ec9d0ffd4eaca0d7abbf70059428f1e46fd4f.zip |
Including <thread> with MSVC is buggy, use a workaround here.
llvm-svn: 238469
Diffstat (limited to 'lldb/unittests/Host/SocketTest.cpp')
-rw-r--r-- | lldb/unittests/Host/SocketTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/unittests/Host/SocketTest.cpp b/lldb/unittests/Host/SocketTest.cpp index a9e14c31c6f..8685c930338 100644 --- a/lldb/unittests/Host/SocketTest.cpp +++ b/lldb/unittests/Host/SocketTest.cpp @@ -7,6 +7,12 @@ // //===----------------------------------------------------------------------===// +#if defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0) +// Workaround for MSVC standard library bug, which fails to include <thread> when +// exceptions are disabled. +#include <eh.h> +#endif + #include <thread> #include "gtest/gtest.h" |