diff options
author | Hongyu Chen <hongyuchy@google.com> | 2024-07-02 20:32:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 20:32:45 -0700 |
commit | 0f9fbbb63cfcd2069441aa2ebef622c9716f8dbb (patch) | |
tree | 32f0ff60b13832ce54a031c85a6706b6c5032550 /lld/MinGW/Driver.cpp | |
parent | 3641efcf8cb256ddbd20f4add5ce55800cad5399 (diff) | |
download | llvm-0f9fbbb63cfcd2069441aa2ebef622c9716f8dbb.zip llvm-0f9fbbb63cfcd2069441aa2ebef622c9716f8dbb.tar.gz llvm-0f9fbbb63cfcd2069441aa2ebef622c9716f8dbb.tar.bz2 |
[lld][ELF] Support LLVM repository and LLVM revision information (#97323)
Added LLVM repository and LLVM revision information for
`lld::getLLDVersion()`
Before this change:
```
hongyuchy@hongyuchy:~/llvm-project/.build_lld_version$ bin/ld.lld --version
LLD 19.0.0 (compatible with GNU linkers)
```
After this change with LLVM_APPEND_VC_REV=on
```
hongyuchy@hongyuchy:~/llvm-project/.build_lld_version$ bin/ld.lld --version
LLD 19.0.0 (https://github.com/yugier/llvm-project.git 4134b33c6a362cb462b335177d6d9e8235f04309), compatible with GNU linkers
```
with LLVM_APPEND_VC_REV=off
```
hongyuchy@hongyuchy:~/llvm-project/.build_lld_version$ bin/ld.lld --version
LLD 19.0.0, compatible with GNU linkers
```
Diffstat (limited to 'lld/MinGW/Driver.cpp')
-rw-r--r-- | lld/MinGW/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index 35fd478..1fd120a 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/MinGW/Driver.cpp @@ -199,7 +199,7 @@ bool link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS, // a GNU compatible linker. As long as an output for the -v option // contains "GNU" or "with BFD", they recognize us as GNU-compatible. if (args.hasArg(OPT_v) || args.hasArg(OPT_version)) - message(getLLDVersion() + " (compatible with GNU linkers)"); + message(getLLDVersion() + ", compatible with GNU linkers"); // The behavior of -v or --version is a bit strange, but this is // needed for compatibility with GNU linkers. |