[LLVMdev] [PATCH] New LLVMGetVersion function allowing applications to get LLVM version through the API directly from libLLVM.so
Xerxes RĂ„nby
xerxes at zafena.se
Wed Sep 1 06:19:44 PDT 2010
On 2010-08-31 23:00, Yuri wrote:
> Please check in this patch.
>
> Thanks,
> Yuri
> Index: lib/VMCore/Core.cpp
>
> + const char *repository_revision = "$Rev: 112342 $";
>
Hi
I dont think this will not work in general.
svn will only fill in the new revision when the Core.cpp file are
updated [1].
The SVN $Rev$ keyword are designed to track changes to a signle file,
not to the whole SVN repository.
In order to get the "global" SVN revision number for the last checkout
you have to use the tool svnversion [2].
svnversion can extract the "global" revision number and insert it into
config.h during configure/cmake config.h creation.
[1]
http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html
[2]
xerxes at xerxes-J464X:~$ cd llvm
xerxes at xerxes-J464X:~/llvm$ svnversion
112596
svnversion can also detect modified svn trees.
Cheers
Xerxes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100901/db58e15b/attachment.html>
More information about the llvm-dev
mailing list