diff options
| author | Jack Nagel | 2015-04-16 20:33:32 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-04-16 22:20:59 -0400 |
| commit | c2dcd91bd1ff2b88836089043bbfffacbbc5c6f3 (patch) | |
| tree | f12f77dcdc8f9805ca0996c64a802925c49d1aa1 /Library/Homebrew/formula_installer.rb | |
| parent | ced7598d6735d3b4cbe34e263fd9cfd4c6f39b43 (diff) | |
| download | brew-c2dcd91bd1ff2b88836089043bbfffacbbc5c6f3.tar.bz2 | |
Eliminate a place where ARGV is mutated
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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" |
