diff options
author | Chris Bieneman <beanz@apple.com> | 2016-03-15 18:07:46 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-03-15 18:07:46 +0000 |
commit | ef43d448d4729194a7fc2b24dcd6f85d42c3740f (patch) | |
tree | 5564a75f1337208f67eb2fbdccee8108769f902d /llvm/lib/Support/CommandLine.cpp | |
parent | fdb20595a1d2fa093d579e29c9f3784e9b5d5037 (diff) | |
download | bcm5719-llvm-ef43d448d4729194a7fc2b24dcd6f85d42c3740f.tar.gz bcm5719-llvm-ef43d448d4729194a7fc2b24dcd6f85d42c3740f.zip |
[CMake] Add PACKAGE_VENDOR for customizing version output
Summary: This change adds a PACKAGE_VENDOR variable. When set it makes the version output more closely resemble the clang version output.
Reviewers: aprantl, bogner
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D18159
llvm-svn: 263566
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index b0867b453de..73792ef729c 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -1756,8 +1756,12 @@ class VersionPrinter { public: void print() { raw_ostream &OS = outs(); - OS << "LLVM (http://llvm.org/):\n" - << " " << PACKAGE_NAME << " version " << PACKAGE_VERSION; +#ifdef PACKAGE_VENDOR + OS << PACKAGE_VENDOR << " "; +#else + OS << "LLVM (http://llvm.org/):\n "; +#endif + OS << PACKAGE_NAME << " version " << PACKAGE_VERSION; #ifdef LLVM_VERSION_INFO OS << " " << LLVM_VERSION_INFO; #endif |