Merge pull request #954 from aw1621107/require-scons-only-immediate-dep
Make scons use stdenv only if immediate build dep
This commit is contained in:
commit
2818156280
@ -562,7 +562,7 @@ class FormulaInstaller
|
|||||||
|
|
||||||
if ARGV.env
|
if ARGV.env
|
||||||
args << "--env=#{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"
|
args << "--env=std"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user