[lld] [lld][ELF] Support LLVM repository and LLVM revision information (PR #97323)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 01:37:59 PDT 2024
mstorsjo wrote:
As this check in Meson only seems to be used to differentiate between the `ld.lld` and `lld-link` interface for the Windows targets, it should be enough to only adjust the printout in `lld/MinGW/Driver.cpp`, e.g. with this diff:
```diff
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp
index 1fd120ad3601..35fd478a2190 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.
```
https://github.com/llvm/llvm-project/pull/97323
More information about the llvm-commits
mailing list