[LLVMdev] [PATCH] llvm-config: add svn revision to --version

Benjamin Kramer benny.kra at googlemail.com
Mon May 18 13:51:27 PDT 2009

Óscar Fuentes wrote:

> Why do you use `svn info' and not `svnversion'?

bad habit. I'm not very familiar with svnversion and its output.

> And this brings another question: how do you deal with modified  
> working
> copies?

We could add a M or "dirty" to the revision number. But I don't know  
how this would affect things like "if (revision >= 12345)".

> This is easy: see the logic for regenerating llvm-config when the file
> that contains the library dependencies changes.

hmm, sounds reasonable since it's in the same Makefile. But I probably  
won't have time to look into this until thursday. Damn exams. If  
anyone likes to volunteer: just do it ;)

More information about the llvm-dev mailing list