From 797580e937eb5f32539c38a91e60943cbf8a1a0b Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 5 Nov 2013 14:18:02 -0500 Subject: [PATCH] Environment: remove support for specifying :builders key in constructor --- build_tests/custom_builder/build.rb | 3 ++- lib/rscons/environment.rb | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build_tests/custom_builder/build.rb b/build_tests/custom_builder/build.rb index 6d1d5bc..2734914 100644 --- a/build_tests/custom_builder/build.rb +++ b/build_tests/custom_builder/build.rb @@ -9,7 +9,8 @@ EOF 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.Program('program', Dir['*.c']) end diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index cdd52c1..03f6eba 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -32,9 +32,6 @@ module Rscons end end end - (@varset[:builders] || []).each do |builder| - add_builder(builder) - end @varset[:echo] ||= :command if block_given?