aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
authorJack Nagel2015-04-16 20:33:32 -0400
committerJack Nagel2015-04-16 22:20:59 -0400
commitc2dcd91bd1ff2b88836089043bbfffacbbc5c6f3 (patch)
treef12f77dcdc8f9805ca0996c64a802925c49d1aa1 /Library/Homebrew/formula_installer.rb
parentced7598d6735d3b4cbe34e263fd9cfd4c6f39b43 (diff)
downloadbrew-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.rb7
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"