[llvm-bugs] [Bug 49814] New: Clang does not distinguish linkers that don't exist from linkers that aren't installed

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 1 17:12:35 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49814

            Bug ID: 49814
           Summary: Clang does not distinguish linkers that don't exist
                    from linkers that aren't installed
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jynelson at email.sc.edu
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

$ clang-11 -fuse-ld=xxx example.c 
clang: error: invalid linker name in argument '-fuse-ld=xxx'

$ clang-11 -fuse-ld=lld example.c 
clang: error: invalid linker name in argument '-fuse-ld=lld'

I think clang should say "unknown linker" for the first and "linker not
installed" for the second. Otherwise it's hard to tell if you just made a typo.

-- 
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/20210402/289e9d13/attachment.html>


More information about the llvm-bugs mailing list