[PATCH] D58411: Update `ld.lld --version` string for monorepo.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 15:10:00 PST 2019


ruiu created this revision.
ruiu added a reviewer: phosek.
Herald added subscribers: jdoerfert, mgorny.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D58411

Files:
  lld/Common/CMakeLists.txt
  lld/Common/Version.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58411.187453.patch
Type: text/x-patch
Size: 3094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/2f915af8/attachment.bin>


More information about the llvm-commits mailing list