mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 13:20:57 +00:00
Print LLVM version info like this:
Low Level Virtual Machine (http://llvm.org/): llvm version 1.8cvs DEBUG build with assertions. instead of like this: Low Level Virtual Machine (llvm) 1.8cvs (see http://llvm.org/) ASSERTIONS ENABLED Also, add a place for vendor version info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05ac92ca7d
commit
3fc2f4e83f
@ -972,13 +972,21 @@ public:
|
|||||||
void operator=(bool OptionWasSpecified) {
|
void operator=(bool OptionWasSpecified) {
|
||||||
if (OptionWasSpecified) {
|
if (OptionWasSpecified) {
|
||||||
if (OverrideVersionPrinter == 0) {
|
if (OverrideVersionPrinter == 0) {
|
||||||
std::cout << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
|
std::cout << "Low Level Virtual Machine (http://llvm.org/):\n";
|
||||||
<< PACKAGE_VERSION << " (see http://llvm.org/)";
|
std::cout << " " << PACKAGE_NAME << " version " << PACKAGE_VERSION;
|
||||||
#ifndef NDEBUG
|
#ifdef LLVM_VERSION_INFO
|
||||||
std::cout << " ASSERTIONS ENABLED\n";
|
std::cout << LLVM_VERSION_INFO;
|
||||||
#else
|
|
||||||
std::cout << "\n";
|
|
||||||
#endif
|
#endif
|
||||||
|
std::cout << "\n ";
|
||||||
|
#ifndef __OPTIMIZE__
|
||||||
|
std::cout << "DEBUG build";
|
||||||
|
#else
|
||||||
|
std::cout << "Optimized build";
|
||||||
|
#endif
|
||||||
|
#ifndef NDEBUG
|
||||||
|
std::cout << " with assertions";
|
||||||
|
#endif
|
||||||
|
std::cout << ".\n";
|
||||||
getOpts().clear(); // Don't bother making option dtors remove from map.
|
getOpts().clear(); // Don't bother making option dtors remove from map.
|
||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user