<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 --- - try linker target support instead of interrogating -v"
   href="http://llvm.org/bugs/show_bug.cgi?id=22452">22452</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>try linker target support instead of interrogating -v
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>michael@weiser.dinsnail.net
          </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=13803" name="attach_13803" title="try linker instead of interrogating it">attachment 13803</a> <a href="attachment.cgi?id=13803&action=edit" title="try linker instead of interrogating it">[details]</a></span>
try linker instead of interrogating it

Older linker versions will not report supported targets in -v output while
still supporting the target:

michael@osx105 ~/llvm $ ~/Gentoo/usr/i686-apple-darwin9/binutils-bin/4.2/ld64
-v
@(#)PROGRAM:ld  PROJECT:ld64-127.2 (Gentoo binutils-apple-4.2-r1)
LLVM version 3.5.1

This will make the Makefile drop all targets which in turn will make the lipo
run fail and compile abort.

The attached patch makes clang_darwin.mk try to link a dylib from
clang_darwin_test_input for the target to determine support. Tested against
HEAD as of 2015-02-02.</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>