From 9c69a45f7775fb9e356e8311c15df065486db570 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 11 Jul 2013 19:10:31 -0400 Subject: [PATCH] Environment: slight syntax cleanup --- lib/rscons/environment.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 75c524d..8a62374 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -56,10 +56,9 @@ module Rscons cache = Cache.new targets_processed = Set.new process_target = proc do |target| - sources_built = @targets[target][:source].map do |src| + if @targets[target][:source].map do |src| targets_processed.include?(src) or not @targets.include?(src) or process_target.call(src) end.all? - if sources_built @targets[target][:builder].run(target, @targets[target][:source], cache,