[LLVMdev] Including svn version number in --version output

Chris Lattner sabre at nondot.org
Wed Jul 9 20:40:34 PDT 2008


On Jul 9, 2008, at 6:17 PM, Eric Christopher wrote:

> gcc does this with contrib/gcc_update which updates the file every
> update:
>
> revision=`svn info | awk '/Revision:/ { print $2 }'`
> branch=`svn info | sed -ne "/URL:/ {
> s,.*/trunk,trunk,
> s,.*/branches/,,
> s,.*/tags/,,
> p
> }"`
>
> where you now have revision and branch information.

We don't want another commit after every other commit.  This should be  
set by the makefile when a build is done.

On Jul 9, 2008, at 7:16 PM, David Greene wrote:
> On Wednesday 09 July 2008 20:13, Tanya M. Lattner wrote:
>> Why not set the VERSUFFIX to be " (Based on Apple Inc. build 5555)  
>> (LLVM
>> rXXXX)"
>
> Not everyone is at Apple.  :)

I don't see what that has to do with anything here.  Have you build  
llvm-gcc lately?  It says that for every build - it *is* based on  
apple gcc.

-Chris




More information about the llvm-dev mailing list