summaryrefslogtreecommitdiff
path: root/Version.cc
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-06-01 14:06:48 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-06-01 14:06:48 +0800
commit31d35de96576d2cddc134cdd0646ce4966052ae3 (patch)
tree1df4283f87c57e8e1d9e22959f1c389b9f274d62 /Version.cc
parent1e993f800921d2a49ad0c71375512a9209347321 (diff)
disable formatv for LLVM release lacks of RTTI support
Diffstat (limited to 'Version.cc')
-rw-r--r--Version.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/Version.cc b/Version.cc
index 13a9b53..9fd924d 100644
--- a/Version.cc
+++ b/Version.cc
@@ -1,5 +1,6 @@
#include <llvm/Config/llvm-config.h>
+#include "Log.hh"
#include "Version.hh"
namespace pcc {
@@ -25,8 +26,8 @@ PCC_NORETURN void ShowVersion() {
PCC_NORETURN void ShowHelp() {
std::cerr << PCC_NAME " version " PCC_VERSION_STRING "\n"
- << "Usage: " PCC_NAME
- " [-vVhiSc] [-O <0,1,2,3>] [-o <output>] file...\n"
+ << "Usage: " << GetExecutableName()
+ << " [-vVhiSc] [-O <0,1,2,3>] [-o <output>] file...\n"
<< " -v Verbose mode.\n"
<< " -vv Very verbose mode.\n"
<< " -V Show version and exit.\n"