<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Building LLDB with mingw-w64 broken"
   href="https://bugs.llvm.org/show_bug.cgi?id=37873">37873</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Building LLDB with mingw-w64 broken
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alexey.pawlow@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Building LLDB with mingw-w64 broked by
<a href="https://github.com/llvm-mirror/lldb/commit/b984165b795e1817e3e41988a8894f755b575db4#diff-4ca0157b507067ecb5603607ef82da11">https://github.com/llvm-mirror/lldb/commit/b984165b795e1817e3e41988a8894f755b575db4#diff-4ca0157b507067ecb5603607ef82da11</a>

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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>