From e40dca154ecb4535d72ea63a5eff2d0e6ee401b3 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Wed, 5 Nov 2008 14:57:49 +0000 Subject: [PATCH] 2008-11-05 Zoltan Varga * mini.c (mono_build_date): New global version holding the build date in string format. * Makefile.am (buildver.c): Generate a file containing the build date. * main.c: Set the build date from the generated file. * mini.c (mono_get_runtime_build_info): New helper function returning build information in a string format. * driver.c (mono_main): Print the build date in --version. * aot-compiler.c aot-runtime.c: Embed the build information into the AOT file when the bind-to-runtime-version option is used. svn path=/trunk/mono/; revision=117978 --- mono/mini/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mono/mini/main.c b/mono/mini/main.c index 0f982430acf..c3fb186be8f 100644 --- a/mono/mini/main.c +++ b/mono/mini/main.c @@ -1,6 +1,8 @@ #include #include "mini.h" +extern const char *build_date; + #ifdef PLATFORM_WIN32 int @@ -27,6 +29,7 @@ main () int main (int argc, char* argv[]) { + mono_build_date = build_date; return mono_main (argc, argv); } -- 2.25.1