diff options
| author | Ted Kremenek <kremenek@apple.com> | 2014-04-21 14:13:22 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2014-04-21 14:13:22 +0000 |
| commit | dd21b89a254b33628f73da38e2728196360686d5 (patch) | |
| tree | 0ac7ecdc73191cb9fbaa72fbaa50a75a0f170450 | |
| parent | 1a85845b492007a49e4cc8aa8eb059c5cc5599fa (diff) | |
| download | bcm5719-llvm-dd21b89a254b33628f73da38e2728196360686d5.tar.gz bcm5719-llvm-dd21b89a254b33628f73da38e2728196360686d5.zip | |
Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson.
llvm-svn: 206752
| -rwxr-xr-x | clang/tools/scan-build/set-xcode-analyzer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/scan-build/set-xcode-analyzer b/clang/tools/scan-build/set-xcode-analyzer index 5ac5c18f115..8e674823ba6 100755 --- a/clang/tools/scan-build/set-xcode-analyzer +++ b/clang/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): |

