[PATCH] D93491: [lld/mac] Add --version flag
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 23 14:42:56 PST 2020
rupprecht added inline comments.
================
Comment at: lld/test/MachO/driver.test:2
+# RUN: %lld --version | FileCheck -check-prefix=VERSION %s
+VERSION: {{LLD [0-9]+\.[0-9]+}}
----------------
FYI, this test is overly specific; be89d7460b63508a6a277050395c14a4fa74b031 to fix this.
For comparison, the `--version` check from lld/test/ELF/driver.test:
```
# RUN: ld.lld --version 2>&1 | FileCheck -check-prefix=VERSION %s
# RUN: ld.lld -v 2>&1 | FileCheck -check-prefix=VERSION %s
# RUN: not ld.lld -v xyz 2>&1 | FileCheck -check-prefix=VERSION %s
# VERSION: LLD {{.*}} (compatible with GNU linkers)
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93491/new/
https://reviews.llvm.org/D93491
More information about the llvm-commits
mailing list