Chris Jackson 0c8c05064d [llvm-ar] Modify usage printouts to use the correct toolname
Modify llvm-ar and llvm-ranlib to use the actual name of the executable
when printing the usage text via the '--help' flag.

Reviewers: Maskray, jhenderson, gbreynoo

Differential Revision: https://reviews.llvm.org/D124445
2022-05-03 17:45:11 +01:00

16 lines
469 B
Plaintext

## Don't make symlinks on Windows.
# UNSUPPORTED: system-windows
# RUN: rm -rf %t
# RUN: mkdir %t
# RUN: ln -s llvm-ranlib %t/llvm-ranlib-9
# RUN: ln -s llvm-ranlib %t/ranlib.exe
# RUN: llvm-ranlib -h | FileCheck %s --check-prefix=DEFAULT
# RUN: %t/llvm-ranlib-9 -h | FileCheck %s --check-prefix=VERSION
# RUN: %t/ranlib.exe -h | FileCheck %s --check-prefix=SUFFIX
# DEFAULT: USAGE: llvm-ranlib{{ }}
# VERSION: USAGE: llvm-ranlib-9{{ }}
# SUFFIX: USAGE: ranlib{{ }}