Add 'v' back in at beginning of global.version.

The lexer expects it to be there for handling __VERSION__.
This commit is contained in:
David Nadlinger
2013-10-20 23:51:34 +02:00
parent 0e71a8caef
commit f8531f1b3c
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
namespace ldc {
const char * const ldc_version = "@LDC_VERSION@";
const char * const dmd_version = "@DMD_VERSION@";
const char * const dmd_version = "v@DMD_VERSION@";
const char * const llvm_version = "@LLVM_VERSION_STRING@";
}

View File

@@ -87,7 +87,7 @@ static cl::list<std::string, StringsAdapter> debuglibs("debuglib",
void printVersion() {
printf("LDC - the LLVM D compiler (%s):\n", global.ldc_version);
printf(" based on DMD v%s and LLVM %s\n", global.version, global.llvm_version);
printf(" based on DMD %s and LLVM %s\n", global.version, global.llvm_version);
printf(" Default target: %s\n", llvm::sys::getDefaultTargetTriple().c_str());
std::string CPU = llvm::sys::getHostCPUName();
if (CPU == "generic") CPU = "(unknown)";