aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-05 23:46:05 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-05 23:46:05 +0000
commit1fbf1f0052d6758774e565039ba69780295eb8dd (patch)
tree35c428b0ffe6d6a7b7fbe009ccfcf1cd66f75ab4
parent40d1bb6383c14d5f8249d0640e8088a91b694c66 (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.cpp4
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;