diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 4ba3a7416f..f8106340ca 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -13,6 +13,7 @@ require "emoji" require "development_tools" require "cache_store" require "linkage_checker" +require "install" class FormulaInstaller include FormulaCellarChecks @@ -219,6 +220,10 @@ class FormulaInstaller end def install + if !formula.bottle_unneeded? && !pour_bottle? && DevelopmentTools.installed? + Homebrew::Install.check_development_tools + end + # not in initialize so upgrade can unlink the active keg before calling this # function but after instantiating this class so that it can avoid having to # relink the active keg if possible (because it is slow). diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index f426db2b09..f86c096a9d 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -47,7 +47,6 @@ module Homebrew def perform_preinstall_checks check_ppc check_writable_install_location - check_development_tools if DevelopmentTools.installed? check_cellar end end