[lld] [lld][ELF] Support LLVM repository and LLVM revision information (PR #97323)
Hongyu Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 11:10:31 PDT 2024
================
@@ -22,6 +22,10 @@ std::string lld::getLLDVersion() {
#define LLD_VENDOR_DISPLAY LLD_VENDOR " "
#else
#define LLD_VENDOR_DISPLAY
+#endif
+#if defined(LLVM_REPOSITORY) || defined(LLVM_REVISION)
+ return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING " (" LLVM_REPOSITORY
+ " " LLVM_REVISION ")";
#endif
return LLD_VENDOR_DISPLAY "LLD " LLD_VERSION_STRING;
----------------
yugier wrote:
updated!
https://github.com/llvm/llvm-project/pull/97323
More information about the llvm-commits
mailing list