r206752 - Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson.
Ted Kremenek
kremenek at apple.com
Mon Apr 21 07:13:23 PDT 2014
Author: kremenek
Date: Mon Apr 21 09:13:22 2014
New Revision: 206752
URL: http://llvm.org/viewvc/llvm-project?rev=206752&view=rev
Log:
Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson.
Modified:
cfe/trunk/tools/scan-build/set-xcode-analyzer
Modified: cfe/trunk/tools/scan-build/set-xcode-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/set-xcode-analyzer?rev=206752&r1=206751&r2=206752&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/set-xcode-analyzer (original)
+++ cfe/trunk/tools/scan-build/set-xcode-analyzer Mon Apr 21 09:13:22 2014
@@ -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):
More information about the cfe-commits
mailing list