forked from OSchip/llvm-project
Basic: Tweak attempt to make version tags work from 'svn export's again, clip
off the extra parts of the $URL$ SVN keyword. llvm-svn: 116269
This commit is contained in:
parent
d097d913b6
commit
48ed37d98e
|
@ -31,8 +31,10 @@ std::string getClangRepositoryPath() {
|
|||
// If the SVN_REPOSITORY is empty, try to use the SVN keyword. This helps us
|
||||
// pick up a tag in an SVN export, for example.
|
||||
static llvm::StringRef SVNRepository("$URL$");
|
||||
if (URL.empty())
|
||||
URL = SVNRepository.split(':').second;
|
||||
if (URL.empty()) {
|
||||
URL = SVNRepository.slice(SVNRepository.find(':'),
|
||||
SVNRepository.find("/lib/Basic"));
|
||||
}
|
||||
|
||||
// Strip off version from a build from an integration branch.
|
||||
URL = URL.slice(0, URL.find("/src/tools/clang"));
|
||||
|
|
Loading…
Reference in New Issue