shortcut Environment#process if @targets is empty
This commit is contained in:
parent
160434b903
commit
a2653a77d1
@ -175,6 +175,7 @@ module Rscons
|
||||
cache = Cache.instance
|
||||
cache.clear_checksum_cache!
|
||||
targets_processed = {}
|
||||
unless @targets.empty?
|
||||
process_target = proc do |target|
|
||||
targets_processed[target] ||= begin
|
||||
@targets[target][:sources].each do |src|
|
||||
@ -199,6 +200,7 @@ module Rscons
|
||||
end
|
||||
cache.write
|
||||
end
|
||||
end
|
||||
|
||||
# Clear all targets registered for the Environment.
|
||||
def clear_targets
|
||||
|
Loading…
x
Reference in New Issue
Block a user