]> granicus.if.org Git - clang/commitdiff
Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson.
authorTed Kremenek <kremenek@apple.com>
Mon, 21 Apr 2014 14:13:22 +0000 (14:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 21 Apr 2014 14:13:22 +0000 (14:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206752 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index 5ac5c18f115a0951a282d4abc1547abb56813511..8e674823ba66c4c8792a005b7a2f54bc7f442c46 100755 (executable)
@@ -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):