aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-04-05 09:24:13 -0700
committerGitHub <noreply@github.com>2024-04-05 09:24:13 -0700
commit7e4883f8881bfaea30996c4e846369fbf0b4b549 (patch)
tree3271e15eb8e0eb99de57f2ebdfda45a0df1e98dc /llvm/lib/Support/CommandLine.cpp
parent29cc80f4ecafe45586401ce4a79b324b6240b6e9 (diff)
downloadllvm-7e4883f8881bfaea30996c4e846369fbf0b4b549.zip
llvm-7e4883f8881bfaea30996c4e846369fbf0b4b549.tar.gz
llvm-7e4883f8881bfaea30996c4e846369fbf0b4b549.tar.bz2
[llvm-ranlib] Change -v (alias for --version) to -V
-V prints the version information in both BSD and GNU ar/ranlib. BSD ranlib rejects -v while -v enables verbose output in GNU ar but is another alias for --version in GNU ranlib. The GNU ranlib behavior is inconsistent: `ranlib -v` is different from `ar -sv`. But it's not a major concern in practice: * Users typically use ranlib solely for creating archive symbol tables, and they don't need verbose output. * Verbose output in ranlib seems a no-op. * GNU ar creates an archive symbol table by default. Many ranlib uses have been eliminated. * Modern linkers like lld/ELF (since version 14) and mold don't rely on archive symbol tables anymore. https://reviews.llvm.org/D71554 introduced -v. This patch removes it so that `llvm-ranlib -v` and `llvm-ranlib -version` lead to errors (GNU ranlib rejects `-version` as well). -V is added as an alias for --version. Close #87654 Pull Request: https://github.com/llvm/llvm-project/pull/87661
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions