Environment: remove support for specifying :builders key in constructor

This commit is contained in:
Josh Holtrop 2013-11-05 14:18:02 -05:00
parent 8b852bd2fd
commit 797580e937
2 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,8 @@ EOF
end end
end end
Rscons::Environment.new(echo: :short, builders: [MySource.new]) do |env| Rscons::Environment.new(echo: :short) do |env|
env.add_builder(MySource.new)
env.MySource('inc.h', []) env.MySource('inc.h', [])
env.Program('program', Dir['*.c']) env.Program('program', Dir['*.c'])
end end

View File

@ -32,9 +32,6 @@ module Rscons
end end
end end
end end
(@varset[:builders] || []).each do |builder|
add_builder(builder)
end
@varset[:echo] ||= :command @varset[:echo] ||= :command
if block_given? if block_given?