[LLVMdev] [PATCH] llvm-config: add svn revision to --version
Frits van Bommel
fvbommel at wxs.nl
Mon May 18 14:26:28 PDT 2009
Óscar Fuentes wrote:
> Why do you use `svn info' and not `svnversion'?
He probably copied this from LDC.
We used to use `svnversion` for LDC, but I changed it to `svn info` because it
was noticeably faster[1]. This may be less of an issue for LLVM where builds
take more time anyway, decreasing the relative impact.
> And this brings another question: how do you deal with modified working
> copies?
If you use svnversion it will append an 'M' to the revision number; see
`svnversion --help`.
[1]: IIRC svnversion took several times longer than the rest of an incremental
build if little had changed.
More information about the llvm-dev
mailing list