diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-05 23:46:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-05 23:46:05 +0000 |
commit | 1fbf1f0052d6758774e565039ba69780295eb8dd (patch) | |
tree | 35c428b0ffe6d6a7b7fbe009ccfcf1cd66f75ab4 | |
parent | 40d1bb6383c14d5f8249d0640e8088a91b694c66 (diff) |
Strip off the /clang/tools/clang at the end of the Subversion URL, if it's there
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86195 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Basic/Version.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Basic/Version.cpp b/lib/Basic/Version.cpp index 9699ee416b..18a8a88810 100644 --- a/lib/Basic/Version.cpp +++ b/lib/Basic/Version.cpp @@ -26,6 +26,10 @@ const char *getClangSubversionPath() { if (End) *End = 0; + End = strstr(URL, "/clang/tools/clang"); + if (End) + *End = 0; + char *Begin = strstr(URL, "cfe/"); if (Begin) { Path = Begin + 4; |