diff options
author | Reid Kleckner <rnk@google.com> | 2022-06-03 10:27:02 -0700 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2022-06-07 11:36:26 -0700 |
commit | 570e76bb6c79bce0718aa55915a4361e361b954f (patch) | |
tree | b20eb09d5b8be908f4ec278fb399bf6da7414e57 /llvm/lib/Support/CommandLine.cpp | |
parent | b1c7889f326fe04e539a136145c1a166eab1c1a1 (diff) | |
download | llvm-570e76bb6c79bce0718aa55915a4361e361b954f.zip llvm-570e76bb6c79bce0718aa55915a4361e361b954f.tar.gz llvm-570e76bb6c79bce0718aa55915a4361e361b954f.tar.bz2 |
[config] Remove vestigial LLVM_VERSION_INFO
This has been superseded by the llvm/Support/VCSRevision.h header. So
far as I can tell, nothing in the CMake build sets LLVM_VERSION_INFO. It
was always undefined, and the ifdefs using it were dead. However, CMake
is very flexible, so it's possible that I missed some ways to set this
variable. One could, for example, probably pass -DLLVM_VERSION_INFO=x on
the command line and get that through to configure_file, or set the
variable in an obscure way (`set(${proj}_VERSION_INFO "x")`). I'm
reasonably confident that isn't happening, but I'd like a second
opinion.
Update the Bazel and gn builds accordingly.
Differential Revision: https://reviews.llvm.org/D126977
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 3e5fff9..742e245 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -2468,11 +2468,7 @@ public: #else OS << "LLVM (http://llvm.org/):\n "; #endif - OS << PACKAGE_NAME << " version " << PACKAGE_VERSION; -#ifdef LLVM_VERSION_INFO - OS << " " << LLVM_VERSION_INFO; -#endif - OS << "\n "; + OS << PACKAGE_NAME << " version " << PACKAGE_VERSION << "\n "; #if LLVM_IS_DEBUG_BUILD OS << "DEBUG build"; #else |