[all-commits] [llvm/llvm-project] 51adea: remove redundant LLVM version from version string ...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Fri Nov 8 09:26:10 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 51adeae1c90c966f5ae7eb1aa8a380fcc7cd4806
https://github.com/llvm/llvm-project/commit/51adeae1c90c966f5ae7eb1aa8a380fcc7cd4806
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2019-11-08 (Fri, 08 Nov 2019)
Changed paths:
M clang/lib/Basic/Version.cpp
Log Message:
-----------
remove redundant LLVM version from version string when setting CLANG_VENDOR
Summary:
When downstream LLVM distributions (like AOSP) set the CLANG_VENDOR
cmake variable, the version string printed by the clang driver looks
like:
$ clang --version
[CLANG_VENDOR] clang version X.X.X ([CLANG_REPOSITORY_STRING] sha) (based on LLVM X.X.X)
Rather than the more standard:
$ clang --version
clang version X.X.X ([CLANG_REPOSITORY_STRING] sha)
Based on feedback the the version string is a little long, the trailing
"(based on LLVM X.X.X)" is redundant and makes less sense after moving
LLVM to the monorepo. And it is only added should vendors set the cmake
variable CLANG_VENDOR. Let's remove it.
Reviewers: jyknight, eli.friedman, rsmith, rjmccall, efriedma
Reviewed By: efriedma
Subscribers: arphaman, efriedma, cfe-commits, srhines
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69925
More information about the All-commits
mailing list