diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-14 02:05:13 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-14 02:05:13 +0800 |
| commit | d80958f987790f533f5048c2e0e8a1cd5fd9f5a1 (patch) | |
| tree | 48f1fcc577eb9b92b2766a0d354f59f12cf8680f /Version.cc | |
| parent | c7d52437db42232d98e585a52ed2fdf75eb7f1af (diff) | |
use template to make literal nodes
Diffstat (limited to 'Version.cc')
| -rw-r--r-- | Version.cc | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,5 @@ +#include <llvm/Config/llvm-config.h> + #include "Version.hh" namespace pcc { @@ -5,15 +7,18 @@ namespace pcc { PCC_NORETURN void ShowVersion() { std::cerr << PCC_NAME " version " PCC_VERSION_STRING "\n" - << "Copyright (C) 2020 Hanjie Wu <nagi@zju.edu.cn>\n" - "Platform: " PCC_OSNAME "\n" - "Built on " __DATE__ " " __TIME__ "\n\n" + << "Copyright (C) 2020 Hanjie Wu <nagi@zju.edu.cn>\n\n" "This program is free software; you can redistribute it and/or " "modify\n" "it under the terms of the GNU General Public License as published " "by\n" "the Free Software Foundation; either version 2 of the License, or\n" - "(at your option) any later version." + "(at your option) any later version.\n\n" + "Configurations:\n" + " LLVM Version: " LLVM_VERSION_STRING "\n" + " Host Platform: " PCC_OSNAME "\n" + " Defaule Target: " LLVM_DEFAULT_TARGET_TRIPLE "\n" + " Built on: " __DATE__ " " __TIME__ << std::endl; std::exit(0); } |
