[llvm-commits] [PATCH] clang -v support for separate clang.git and llvm.git

Andrew Trick atrick at apple.com
Thu Mar 1 23:51:14 PST 2012


I'd like support for grabbing the llvm source revision from the clang binary. I don't really care how it's done, but I have a patch that I hope is good enough for now. I'd be happy if someone can further improve the version string logic.

My intention is not to change the version string when clang and llvm are checked out from SVN. It should still be
 "(trunk rNNNNNN)"

But when you build from clang.git and llvm.git, you're now going to see something like
 "(http://llvm.org/git/clang.git NNN....NNN http://llvm.org/git/llvm.git NNN...NNN)".

I have scripts that scrape the git ID, combine results from the same build, and compare differences across different builds. I need to know when LLVM changes and clang does not. This happens to always be the case when I commit locally, so it's an important case for me.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-clang-v-support-for-separate-llvm-clang-reposito.patch
Type: application/octet-stream
Size: 4743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120301/a0481f39/attachment.obj>


More information about the llvm-commits mailing list