aboutsummaryrefslogtreecommitdiff
path: root/tools/scan-build
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-26 18:13:03 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-26 18:13:03 +0000
commit9d86eab84b4169b9083a7b34f70ba9beeaf21537 (patch)
tree603445068578572d14afb4eb89d939e41216ff6b /tools/scan-build
parentb35007cc4de8256b39dc1ed9abdeb8b2458c3c01 (diff)
Make set-xcode-analyzer more tolerant of the naming differenes reported by xcode-select.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-build')
-rwxr-xr-xtools/scan-build/set-xcode-analyzer2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-build/set-xcode-analyzer b/tools/scan-build/set-xcode-analyzer
index c280bb4d40..de3219ba5b 100755
--- a/tools/scan-build/set-xcode-analyzer
+++ b/tools/scan-build/set-xcode-analyzer
@@ -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)