[llvm-bugs] [Bug 26151] New: unknown argument: -v/--version/-V

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 14 17:07:58 PST 2016


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

            Bug ID: 26151
           Summary: unknown argument: -v/--version/-V
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: alexchandel at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

lld doesn't recognize any of the version flags in GNU mode, which the manual
defines as:

```
-v
--version
-V
Display the version number for ld. The -V option also lists the supported
emulations.
```

Additionally, lld incorrectly treats the `-v` flag in Darwin mode:

```
lld-darwin -v           
error: -arch not specified and could not be inferred
```

vs

```
ld -v
@(#)PROGRAM:ld  PROJECT:ld64-253.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7k armv7m armv7em (tvOS)
LTO support using: Apple LLVM 7.0.2 (clang-700.1.81)
```

Even when the `-arch` flag is provided to lld, it still fails to print
supported architectures (which ought to be pretty much everything).

-- 
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/20160115/2b5fd5cc/attachment.html>


More information about the llvm-bugs mailing list