Yuri
2010-Aug-31 21:00 UTC
[LLVMdev] [PATCH] New LLVMGetVersion function allowing applications to get LLVM version through the API directly from libLLVM.so
Please check in this patch. Thanks, Yuri -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch-version URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100831/632e9759/attachment.ksh>
Yuri
2010-Aug-31 21:27 UTC
[LLVMdev] [PATCH] New LLVMGetVersion function allowing applications to get LLVM version through the API directly from libLLVM.so
On 08/31/2010 14:00, Yuri wrote:> Please check in this patch.Sorry, this patch only captures the revision of this one particular file. I will update it to capture the repository revision. Yuri
Xerxes RĂ„nby
2010-Sep-01 13:19 UTC
[LLVMdev] [PATCH] New LLVMGetVersion function allowing applications to get LLVM version through the API directly from libLLVM.so
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>
Maybe Matching Threads
- [LLVMdev] [PATCH] llvm-config: add svn revision to --version
- trouble with german special chars on smb shares
- newbie problem: can't mount win xp disk into linux (regkey is set)
- [LLVMdev] Including svn version number in --version output
- [LLVMdev] What is the state of LLVM's ARM backend