aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLibrary/Homebrew/build.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 6c5550154..e59b5be6a 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -73,8 +73,7 @@ class Build
def pre_superenv_hacks
# Allow a formula to opt-in to the std environment.
- ARGV.unshift '--env=std' if (f.env.std? or
- f.recursive_dependencies.detect{|d| d.name == 'scons' }) and
+ ARGV.unshift '--env=std' if (f.env.std? or deps.any? { |d| d.name == 'scons' }) and
not ARGV.include? '--env=super'
end