Add Elrood's patch to output LDC and LLVM source revs.

This commit is contained in:
Christian Kamm
2008-12-14 16:51:36 +01:00
parent 44c606c409
commit dff06d0f15
7 changed files with 58 additions and 8 deletions

View File

@@ -39,7 +39,7 @@
#include "gen/logger.h"
#include "gen/linker.h"
#include "llvm/Config/config.h"
#include "revisions.h"
void getenv_setargv(const char *envvar, int *pargc, char** *pargv);
@@ -152,8 +152,8 @@ extern void backend_term();
void usage()
{
printf("LLVM D Compiler %s (based on DMD %s and %s)\n%s\n%s\n",
global.ldc_version, global.version, PACKAGE_STRING, global.copyright, global.written);
printf("LLVM D Compiler %s\nbased on DMD %s and %s\n%s\n%s\n",
global.ldc_version, global.version, global.llvm_version, global.copyright, global.written);
printf("\
D Language Documentation: http://www.digitalmars.com/d/2.0/index.html\n\
LDC Homepage: http://www.dsource.org/projects/ldc\n\

View File

@@ -193,6 +193,7 @@ struct Global
int structalign;
const char *version;
const char *ldc_version;
const char *llvm_version;
Param params;
unsigned errors; // number of errors reported so far