[all-commits] [llvm/llvm-project] 06010f: [ELF] Make -V an alias for -v
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Sep 20 17:13:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06010fd1be3d816fdbbb53f75a26902c02b6f111
https://github.com/llvm/llvm-project/commit/06010fd1be3d816fdbbb53f75a26902c02b6f111
Author: Fangrui Song <i at maskray.me>
Date: 2022-09-20 (Tue, 20 Sep 2022)
Changed paths:
M lld/ELF/Options.td
M lld/docs/ld.lld.1
M lld/test/ELF/version.test
Log Message:
-----------
[ELF] Make -V an alias for -v
In GNU ld,
* --version skips linker input processing.
* -v and -V keep processing if there is any input file. -V has more
information we don't support.
We currently make -V an alias for --version which skips input processing.
On many `*-freebsd` and `powerpc-*` targets, `gcc -v` passes `-V` to ld
and expects to process input. Make -V an alias for -v to provide
compatibility.
Fix https://github.com/llvm/llvm-project/issues/57859
More information about the All-commits
mailing list