[PATCH] Fix Windows build

Robinson, Paul Paul_Robinson at playstation.sony.com
Wed Nov 26 16:14:45 PST 2014


With patch...

> -----Original Message-----
> From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-
> bounces at cs.uiuc.edu] On Behalf Of Robinson, Paul
> Sent: Wednesday, November 26, 2014 4:12 PM
> To: llvm-commits at cs.uiuc.edu
> Subject: [PATCH] Fix Windows build
> 
> r222391 updated GetSVN.cmake to run the LLVM helper scripts
> GetSourceVersion
> and GetRepositoryPath.  However, being shell scripts, they work only on
> Unix-y hosts; on Windows they don't work, you end up with an
> SVNVersion.inc
> that looks like this:
> 
> #define LLVM_REVISION ""
> #define LLVM_REPOSITORY ""
> #define SVN_REVISION ""
> #define SVN_REPOSITORY ""
> 
> I've rewritten the scripts as best I can into CMake so they will work on
> Windows as well.  Now I get a better-looking SVNVersion.inc:
> 
> #define LLVM_REVISION "222770"
> #define LLVM_REPOSITORY "http://llvm.org/svn/llvm-project/llvm/trunk"
> #define SVN_REVISION "222770"
> #define SVN_REPOSITORY "http://llvm.org/svn/llvm-project/cfe/trunk"
> 
> I can only test it on SVN, but I was able to clone code from another
> CMake script so I'm pretty hopeful that it works for Git as well.
> 
> Thanks,
> --paulr
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetSVN.diff
Type: application/octet-stream
Size: 3152 bytes
Desc: GetSVN.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141127/acd25838/attachment.obj>


More information about the llvm-commits mailing list