aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
authorMisty De Meo2015-08-21 11:04:22 -0700
committerMisty De Meo2015-08-21 11:04:22 -0700
commit727239e12f98fafad39aa4f70b37c6d5bf4db1cc (patch)
tree6019e597c18c9ea366e7e45be0a3e6fc19335ae1 /Library/Homebrew/cmd/install.rb
parent1da2855c0b1d884d18944307bdbbe2b64c4dd47d (diff)
parent04a0b2aafe2062701be4028f408d0bee15f3815d (diff)
downloadbrew-727239e12f98fafad39aa4f70b37c6d5bf4db1cc.tar.bz2
Merge bottle install without Xcode branch
Merge branch 'bottle_hooks'
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 19c826d44..47735a23c 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -38,6 +38,10 @@ module Homebrew
end
end
+ # if the user's flags will prevent bottle only-installations when no
+ # developer tools are available, we need to stop them early on
+ FormulaInstaller.prevent_build_flags unless MacOS.has_apple_developer_tools?
+
ARGV.formulae.each do |f|
# head-only without --HEAD is an error
if !ARGV.build_head? && f.stable.nil? && f.devel.nil?
@@ -131,10 +135,10 @@ module Homebrew
checks = Checks.new
%w[
check_for_unsupported_osx
+ check_for_bad_install_name_tool
check_for_installed_developer_tools
check_xcode_license_approved
check_for_osx_gcc_installer
- check_for_bad_install_name_tool
].each do |check|
out = checks.send(check)
opoo out unless out.nil?
@@ -161,7 +165,7 @@ module Homebrew
def perform_preinstall_checks
check_ppc
check_writable_install_location
- check_xcode
+ check_xcode if MacOS.has_apple_developer_tools?
check_cellar
end