From dd8dc7a38099d9c7f1ffd47b542f1d4dbe7379fc Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 20 Apr 2014 16:33:41 -0500 Subject: Remove obsolete DEVELOPER_DIR hacks These days Homebrew refuses to do anything if the xcode-select path is busted, so this workaround is unnecessary. --- Library/ENV/4.3/xcrun | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/ENV') diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun index 6921bb3c4..2eaf4eff4 100755 --- a/Library/ENV/4.3/xcrun +++ b/Library/ENV/4.3/xcrun @@ -9,7 +9,7 @@ require "#{dirname}/../libsuperenv" SUPERBIN = dirname.cleanpath.freeze # Some build tools are stupid and still set DEVELOPER_DIR to old /Developer -ENV['DEVELOPER_DIR'] = ENV['HOMEBREW_DEVELOPER_DIR'] +ENV.delete "DEVELOPER_DIR" exec "/usr/bin/xcrun", *ARGV if ARGV.empty? or ARGV[0][0..0] == '-' if File.exist?("/usr/bin/#{ARGV.first}") @@ -23,9 +23,7 @@ end arg0 = ARGV.shift try `/usr/bin/xcrun --find #{arg0} 2>/dev/null`.chomp -# Nuts, Xcode is not setup properly or something. Try to find the tools anyway! -try "#{ENV['HOMEBREW_DEVELOPER_DIR']}/usr/bin/#{arg0}" -try "#{ENV['HOMEBREW_DEVELOPER_DIR']}/Toolchains/XcodeDefault.xctoolchain/usr/bin/#{arg0}" + # xcrun won't always be able to find Homebrew's apple-gcc42, # even when it's in the PATH ENV['PATH'].split(':').each do |p| -- cgit v1.2.3