[LLVMbugs] [Bug 22452] New: try linker target support instead of interrogating -v

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 3 18:55:33 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22452

            Bug ID: 22452
           Summary: try linker target support instead of interrogating -v
           Product: compiler-rt
           Version: 3.6
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: michael at weiser.dinsnail.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13803
  --> http://llvm.org/bugs/attachment.cgi?id=13803&action=edit
try linker instead of interrogating it

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

michael at 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150204/7f3e604f/attachment.html>


More information about the llvm-bugs mailing list