[cfe-dev] __VERSION__?

रजनीश rdogra at earthlink.net
Mon Mar 23 20:55:27 PDT 2009


So I built ffmpeg 0.5 with new clang driver.

/Developer/ffmpeg-0.5-> ./ffmpeg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
   configuration: --cc=clang --enable-pthreads --disable-gprof -- 
disable-debug --disable-vhook --disable-ffserver --enable-shared -- 
disable-static --enable-libfaac --enable-libfaad --enable-gpl --extra- 
ldflags=-L/usr/local/lib --extra-cflags=-I/usr/local/include
   libavutil     49.15. 0 / 49.15. 0
   libavcodec    52.20. 0 / 52.20. 0
   libavformat   52.31. 0 / 52.31. 0
   libavdevice   52. 1. 0 / 52. 1. 0
   built on Mar 23 2009 20:32:42, gcc: 4.2.1 (Apple Computer, Inc.  
build 5621) (dot 3)
At least one output file must be specified


Notice that ffmpeg shows gcc as the compiler instead of clang...

here is the code that is in ffmpeg-0.5/cmdutils.c

void show_banner(void)
{
     fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d- 
%d Fabrice Bellard, et al.\n",
             program_name, program_birth_year, this_year);
     fprintf(stderr, "  configuration: " FFMPEG_CONFIGURATION "\n");
     print_all_lib_versions(stderr, 1);
     fprintf(stderr, "  built on " __DATE__ " " __TIME__);
#ifdef __GNUC__
     fprintf(stderr, ", gcc: " __VERSION__ "\n");
#else
     fprintf(stderr, ", using a non-gcc compiler\n");
#endif
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090323/f8b1182f/attachment.html>


More information about the cfe-dev mailing list