<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 - CMakeLists.txt for LLVM-C checks wrong host-triple for windows-x86"
   href="https://bugs.llvm.org/show_bug.cgi?id=44127">44127</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CMakeLists.txt for LLVM-C checks wrong host-triple for windows-x86
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tagoo@outlook.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The CMakeLists.txt for the llvm-shlib is currently checking against
`LLVM_HOST_TRIPLE STREQUAL "1686=pc-win32"`:
<a href="https://github.com/llvm/llvm-project/blob/master/llvm/tools/llvm-shlib/CMakeLists.txt#L120">https://github.com/llvm/llvm-project/blob/master/llvm/tools/llvm-shlib/CMakeLists.txt#L120</a>

However, the default host-triple for the official Win32 builds is
"i686-pc-windows-msvc" (this is also the default host triple computed when
building locally with MSVC).

This results in the official LLVM-C.dll binary (as downloaded from
<a href="http://releases.llvm.org/download.html">http://releases.llvm.org/download.html</a>) being only 9kb in size and containing
no exports.

The CMakeLists.txt should likely default to "i686-pc-windows-msvc" so that
official builds work as expected. Ideally, the logic would also check other
Win32 triplets as appropriate.</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>