diff options
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" |
