I recently checked out the repo using git-svn, and I noticed when I built clang that the word "trunk" was missing from the version info.<div><br></div><div>This is what was showing up...</div><div><div>clang version 2.8 ($URL$ 110106) # because it is not taking the value from svn</div>
<div>Target: i386-apple-darwin10</div><div>Thread model: posix</div></div><div><br></div><div>Instead of...</div><div><div>clang version 2.8 (trunk 110106)</div><div>Target: i386-apple-darwin10</div><div>Thread model: posix</div>
</div><div><br></div><div>So, I went on IRC and Daniel thought that it might be a good idea to do it like it is done with the revision number, so here is my take on it.</div><div><br></div><div>GetRepositoryPath goes in llvms' utils folder, and the rest of the patch is for clang.</div>
<div><br></div><div>One thing to note is that I did this only for the Makefile and not for cmake, so that may cause issues. Either way, let me know what you think, and if you want me to change anything.</div><div><br></div>
<div>Thanks,</div><div>Jon</div>