<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 - lld-link /lib allows creating mixed-bitness lib files; lib.exe doesn't allow that"
href="https://bugs.llvm.org/show_bug.cgi?id=38782">38782</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld-link /lib allows creating mixed-bitness lib files; lib.exe doesn't allow that
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>COFF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>C:\src\chrome\src>type f1.c
void f1() {}
C:\src\chrome\src>type f2.c
void f2() {}
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
-m64 -c f1.c
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
-m32 -c f2.c
C:\src\chrome\src>lib /out:foo.lib f1.obj f2.obj
Microsoft (R) Library Manager Version 14.14.26428.1
Copyright (C) Microsoft Corporation. All rights reserved.
f2.obj : fatal error LNK1112: module machine type 'x86' conflicts with target
machine type 'x64'
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\lld-link.exe"
/lib /out:foo.lib f2.obj f1.obj
Not allowing this seems like a good choice.</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>