<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - GetHostTriple.cmake incorrectly identifies arch under MSYS with MinGW-w64"
href="http://llvm.org/bugs/show_bug.cgi?id=18287">18287</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GetHostTriple.cmake incorrectly identifies arch under MSYS with MinGW-w64
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chris@chris-kay.co.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11755" name="attach_11755" title="Proposed "fix"">attachment 11755</a> <a href="attachment.cgi?id=11755&action=edit" title="Proposed "fix"">[details]</a></span>
Proposed "fix"
Using CMake started under an MSYS environment and using MSYS makefiles with
MinGW-w64 incorrectly identifies the host and default target as
"i686-pc-mingw32" instead of "x86_64-w64-mingw32".
This behaviour is down to line 11 in cmake/modules/GetHostTriple.cmake, which
checks for MSYS when I believe the correct behaviour would be to ignore it. I,
at least, have had no problems compiling and building after removing the check.
I may have not considered the original reason for adding the check in the first
place, but either way I don't believe it is correct as it currently is.</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>