[Bug 37873] New: Building LLDB with mingw-w64 broken

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

labath@google.com changed bug 37873

What Removed Added
CC labath@google.com
Status NEW RESOLVED
Resolution FIXED

Comment # 1 on bug 37873 from labath@google.com

I have applied the fix as r335112, thanks.

As you must have noticed, nobody builds/tests lldb with this toolchain, so be
on the lookout for other potential issues.