
With `LLVM_APPEND_VC_REV=off`, the new version message after #97323 looks like: ``` % /tmp/out/custom2/bin/ld.lld --version LLD 19.0.0, compatible with GNU linkers ``` A trailing comma after the version string might cause issues with version detection tools that don't strip it, as seen in the Linux kernel's scripts/ld-version.sh script. Pull Request: https://github.com/llvm/llvm-project/pull/97942
11 lines
387 B
Plaintext
11 lines
387 B
Plaintext
## --version skips input file processing.
|
|
# RUN: ld.lld --version %t/not-exist 2>&1 | FileCheck %s
|
|
|
|
## -v/-V don't skip processing if there is any input.
|
|
# RUN: ld.lld -v 2>&1 | FileCheck %s
|
|
# RUN: not ld.lld -v %t/not-exist 2>&1 | FileCheck %s
|
|
# RUN: ld.lld -V 2>&1 | FileCheck %s
|
|
# RUN: not ld.lld -V %t/not-exist 2>&1 | FileCheck %s
|
|
|
|
# CHECK: LLD {{.+}} (compatible with GNU linkers)
|