Environment: remove support for specifying :builders key in constructor
This commit is contained in:
parent
8b852bd2fd
commit
797580e937
@ -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
|
||||||
|
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user