From c2dcd91bd1ff2b88836089043bbfffacbbc5c6f3 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 16 Apr 2015 20:33:32 -0400 Subject: Eliminate a place where ARGV is mutated --- Library/Homebrew/formula_installer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/formula_installer.rb') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index efd15d47d..3113810af 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -435,7 +435,12 @@ class FormulaInstaller args << "--verbose" if verbose? args << "--debug" if debug? args << "--cc=#{ARGV.cc}" if ARGV.cc - args << "--env=#{ARGV.env}" if ARGV.env + + if ARGV.env + args << "--env=#{ARGV.env}" + elsif formula.env.std? || formula.recursive_dependencies.any? { |d| d.name == "scons" } + args << "--env=std" + end if formula.head? args << "--HEAD" -- cgit v1.2.3