From b3a7ad7ca61c840cd722b6a55801fcbcc3faeac5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 21 Apr 2020 13:26:37 +0100 Subject: [PATCH] formula_installer: fix build_from_source? call. This should check the local instance variable rather than the global value as it varies for dependencies and requested formulae. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 6885971ed4..e8c9bb372d 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -97,7 +97,7 @@ class FormulaInstaller return false if !formula.bottled? && !formula.local_bottle_path return true if force_bottle? - return false if Homebrew.args.build_from_source || build_bottle? || interactive? + return false if build_from_source? || build_bottle? || interactive? return false if ARGV.cc return false unless options.empty? return false if formula.bottle_disabled?