From f9d2832618bdfdcb2fb6673a0ff0464fd1e6affa Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 21 Apr 2014 14:13:22 +0000 Subject: [PATCH] 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 --- tools/scan-build/set-xcode-analyzer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.40.0