aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-31 00:32:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-31 00:32:50 +0000
commit9a4a9c25fc32b9c19fa0c20acfe5e44efa24fd02 (patch)
treea0f52224b52fb7d97a33dbc46f0ff4b0487968d4 /lib
parent2d33e423d5091b7d2cb8618952752abd55bba965 (diff)
Basic: Add support for a build variable to set the repository path that goes
into the Clang version. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 9367319c5f..af2f848071 100644
--- a/lib/Basic/Version.cpp
+++ b/lib/Basic/Version.cpp
@@ -22,6 +22,9 @@ using namespace std;
namespace clang {
std::string getClangRepositoryPath() {
+#if defined(CLANG_REPOSITORY_STRING)
+ return CLANG_REPOSITORY_STRING;
+#else
#ifdef SVN_REPOSITORY
llvm::StringRef URL(SVN_REPOSITORY);
#else
@@ -45,6 +48,7 @@ std::string getClangRepositoryPath() {
URL = URL.substr(Start + 4);
return URL;
+#endif
}
std::string getClangRevision() {