Skip to content
Snippets Groups Projects
Commit f9d28326 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

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
parent e910cea5
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,7 @@ def main(): ...@@ -100,7 +100,7 @@ def main():
if (xcode_path.find(".app/") != -1): if (xcode_path.find(".app/") != -1):
# Cut off the 'Developer' dir, as the xcspec lies in another part # Cut off the 'Developer' dir, as the xcspec lies in another part
# of the Xcode.app subtree. # of the Xcode.app subtree.
xcode_path = os.path.dirname(xcode_path) xcode_path = xcode_path.rsplit('/Developer', 1)[0]
foundSpec = False foundSpec = False
for x in FindClangSpecs(xcode_path): for x in FindClangSpecs(xcode_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment