]> granicus.if.org Git - libx264/commitdiff
add date and compiler to `x264 --version`
authorLoren Merritt <pengvado@akuvian.org>
Sat, 29 Nov 2008 11:54:02 +0000 (11:54 +0000)
committerLoren Merritt <pengvado@akuvian.org>
Sat, 29 Nov 2008 11:54:57 +0000 (11:54 +0000)
x264.c

diff --git a/x264.c b/x264.c
index e8febc281e0714e8d599e8f269ce8992e2a0015e..a1a8c94ff0fd89ff4a4f1b236bc277af94447301 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -512,6 +512,12 @@ static int  Parse( int argc, char **argv,
                 printf( "x264 "X264_POINTVER"\n" );
 #else
                 printf( "x264 0.%d.X\n", X264_BUILD );
+#endif
+                printf( "built on " __DATE__ ", " );
+#ifdef __GNUC__
+                printf( "gcc: " __VERSION__ "\n" );
+#else
+                printf( "using a non-gcc compiler\n" );
 #endif
                 exit(0);
             case OPT_FRAMES: