minor clarification to Environment#process_step behavior
This commit is contained in:
parent
a4dec210ae
commit
dd3d468a28
@ -666,7 +666,7 @@ module Rscons
|
|||||||
if thread
|
if thread
|
||||||
# We found a completed thread.
|
# We found a completed thread.
|
||||||
process_remove_wait(thread)
|
process_remove_wait(thread)
|
||||||
builder = builder_for_thread(thread)
|
unblocked_builder = builder_for_thread(thread)
|
||||||
completed_command = @threads[thread]
|
completed_command = @threads[thread]
|
||||||
@threads.delete(thread)
|
@threads.delete(thread)
|
||||||
if completed_command.is_a?(Command)
|
if completed_command.is_a?(Command)
|
||||||
@ -674,7 +674,7 @@ module Rscons
|
|||||||
completed_command.status = thread.value
|
completed_command.status = thread.value
|
||||||
unless completed_command.status
|
unless completed_command.status
|
||||||
Cache.instance["failed_commands"] << completed_command.command
|
Cache.instance["failed_commands"] << completed_command.command
|
||||||
@process_failures << "Failed to build #{builder.target}."
|
@process_failures << "Failed to build #{unblocked_builder.target}."
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -699,16 +699,14 @@ module Rscons
|
|||||||
result << builder_for_thread(thread).target
|
result << builder_for_thread(thread).target
|
||||||
end
|
end
|
||||||
if @builder_sets.size > 0
|
if @builder_sets.size > 0
|
||||||
builder = @builder_sets[0].get_next_builder_to_run(targets_still_building)
|
if builder = @builder_sets[0].get_next_builder_to_run(targets_still_building)
|
||||||
end
|
|
||||||
|
|
||||||
if builder
|
|
||||||
builder.vars = @varset.merge(builder.vars)
|
builder.vars = @varset.merge(builder.vars)
|
||||||
@build_hooks[:pre].each do |build_hook_block|
|
@build_hooks[:pre].each do |build_hook_block|
|
||||||
build_hook_block.call(builder)
|
build_hook_block.call(builder)
|
||||||
end
|
end
|
||||||
return run_builder(builder)
|
return run_builder(builder)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if @threads.size > 0
|
if @threads.size > 0
|
||||||
# A runnable builder was not found but there is a thread running,
|
# A runnable builder was not found but there is a thread running,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user