]> granicus.if.org Git - clang/commitdiff
Make set-xcode-analyzer more tolerant of the naming differenes reported by xcode...
authorTed Kremenek <kremenek@apple.com>
Wed, 26 Sep 2012 18:13:03 +0000 (18:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 26 Sep 2012 18:13:03 +0000 (18:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164712 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index c280bb4d40a3f69c68ad7897e2cea5a24c40b666..de3219ba5bb800cd0cfe8afe36a84fdd985bf0a4 100755 (executable)
@@ -80,7 +80,7 @@ def main():
   except AttributeError:
     # Fall back to the default install location when using Python < 2.7.0
     xcode_path = "/Developer"
-  if (re.search("Xcode.app", xcode_path)):
+  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)