aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-15 09:16:19 +0100
committerGitHub2016-09-15 09:16:19 +0100
commit281815628041b70a3ed4be6710ad7fea0de5f770 (patch)
tree78e4834d8ede20136f156a5ef0ae04e175d41948 /Library
parent099295163412b19470c500406738c50c2fb2fc8f (diff)
parent71063aa2e39ed12a6e42ebd7e66d477b3baa02c8 (diff)
downloadbrew-281815628041b70a3ed4be6710ad7fea0de5f770.tar.bz2
Merge pull request #954 from aw1621107/require-scons-only-immediate-dep
Make scons use stdenv only if immediate build dep
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 68c02aee3..cb62e6206 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -562,7 +562,7 @@ class FormulaInstaller
if ARGV.env
args << "--env=#{ARGV.env}"
- elsif formula.env.std? || formula.recursive_dependencies.any? { |d| d.name == "scons" }
+ elsif formula.env.std? || formula.deps.select(&:build?).any? { |d| d.name == "scons" }
args << "--env=std"
end