Skip to content
Snippets Groups Projects
Commit f30c2645 authored by Tim D. Smith's avatar Tim D. Smith Committed by Xu Cheng
Browse files

Avoid pathological trailing slash

Resolves an issue where xcode-select output with a terminal slash leads
to superenv failing to strip system library paths from ccld-style
invocations.

Fixes Homebrew/homebrew#49731. Discussion in Homebrew/homebrew#50154.
parent 4516375d
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,8 @@ module OS
path = bundle_path
path.join("Contents", "Developer") if path
else
Pathname.new(dir)
# Use cleanpath to avoid pathological trailing slash
Pathname.new(dir).cleanpath
end
end
end
......
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