Bug ID 37873
Summary Building LLDB with mingw-w64 broken
Product lldb
Version 6.0
Hardware PC
OS Windows NT
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter alexey.pawlow@gmail.com
CC llvm-bugs@lists.llvm.org
Building LLDB with mingw-w64 broked by
[https://github.com/llvm-mirror/lldb/commit/b984165b795e1817e3e41988a8894f755b575db4#diff-4ca0157b507067ecb5603607ef82da11](https://github.com/llvm-mirror/lldb/commit/b984165b795e1817e3e41988a8894f755b575db4#diff-4ca0157b507067ecb5603607ef82da11)
Fix is:
--- lldb/include/lldb/lldb-defines.h 2018-06-14 10:47:59.093121500 +0300
+++ lldb/include/lldb/lldb-defines.h 2018-06-14 10:48:12.399156100 +0300
@@ -12,15 +12,15 @@
#include "lldb/lldb-types.h"
-#if defined(_MSC_VER)
+#if defined(_WIN32)
#if defined(EXPORT_LIBLLDB)
#define LLDB_API __declspec(dllexport)
#elif defined(IMPORT_LIBLLDB)
#define LLDB_API __declspec(dllimport)
#else
#define LLDB_API
#endif
-#else // defined (_MSC_VER)
+#else // defined (_WIN32)
#define LLDB_API
#endif