From: Ted Kremenek Date: Mon, 21 Apr 2014 14:13:22 +0000 (+0000) Subject: Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9d2832618bdfdcb2fb6673a0ff0464fd1e6affa;p=clang Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206752 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/set-xcode-analyzer b/tools/scan-build/set-xcode-analyzer index 5ac5c18f11..8e674823ba 100755 --- a/tools/scan-build/set-xcode-analyzer +++ b/tools/scan-build/set-xcode-analyzer @@ -100,7 +100,7 @@ def main(): if (xcode_path.find(".app/") != -1): # Cut off the 'Developer' dir, as the xcspec lies in another part # of the Xcode.app subtree. - xcode_path = os.path.dirname(xcode_path) + xcode_path = xcode_path.rsplit('/Developer', 1)[0] foundSpec = False for x in FindClangSpecs(xcode_path):