Skip to content
Snippets Groups Projects
Commit b49fa78f authored by Stephan Zeissler's avatar Stephan Zeissler Committed by Adam Vandenberg
Browse files

Change sdk detection to same syntax used elsewhere.


This wasn't working for me on leopard with ruby 1.9.2.

Closes Homebrew/homebrew#14636.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent c36f79c7
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ module MacOS extend self
opts << "#{Xcode.prefix}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX#{v}.sdk"
# Xcode < 4.3 style
opts << "/Developer/SDKs/MacOS#{v}.sdk"
opts.map{|a| Pathname.new(a) }.detect(&:directory?)
opts.map{|a| Pathname.new(a) }.detect { |p| p.directory? }
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