summaryrefslogtreecommitdiff
path: root/lld/Common/Version.cpp
AgeCommit message (Collapse)Author
2024-07-09[LLD] Fix preprocessor condition when getting lld version (#98137)Momchil Velikov
2024-07-02[lld][ELF] Support LLVM repository and LLVM revision information (#97323)Hongyu Chen
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 ```
2021-08-04[lld] Remove unused LLD_REPOSITORYFangrui Song
Remnant after D72803. Distributions who want to customize the string can customize LLD_VERSION_STRING instead. Reviewed By: #lld-macho, mstorsjo, thakis Differential Revision: https://reviews.llvm.org/D107416
2020-10-29Remove HAVE_VCS_VERSION_INC, not neededMarcel Hlopko
This preprocessor define was meant to be used to conditionally include VCSVersion.inc. However, the define was always set, and it was the content of the header that was conditionally generated. Therefore HAVE_VCS_VERSION_INC should be cleaned up. Reviewed By: gribozavr2, MaskRay Differential Revision: https://reviews.llvm.org/D84623
2020-05-11Add vendor macro to "lld"stevewan
Summary: Add the vendor macro to "lld" for extended version output support, such that it's able to print additional version info. This is consistent with the Clang and LLVM version printer, and the additional version message can be provided via PACKAGE_VENDOR. Reviewers: hubert.reinterpretcast, kbarton, cebowleratibm, rzurob, ruiu Reviewed By: hubert.reinterpretcast Subscribers: emaste, mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79026
2019-02-21Update `ld.lld --version` string for monorepo.Rui Ueyama
This patch basically does the same thing as https://reviews.llvm.org/rL352729 did to clang. With this patch, lld now prints out a correct version string including a git commit id like this: $ bin/ld.lld --version LLD 9.0.0 (https://github.com/llvm/llvm-project.git c027658504fa9e68173f53dedaf223695a65e910) (compatible with GNU linkers) Fixes https://bugs.llvm.org/show_bug.cgi?id=40780 Differential Revision: https://reviews.llvm.org/D58411 llvm-svn: 354605
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
2017-10-02Move new lld's code to Common subdirectory.Rui Ueyama
New lld's files are spread under lib subdirectory, and it isn't easy to find which files are actually maintained. This patch moves maintained files to Common subdirectory. Differential Revision: https://reviews.llvm.org/D37645 llvm-svn: 314719