builder registered during build hooks should increase build step count - close #161
This commit is contained in:
parent
132d22e886
commit
419e6ed313
@ -116,6 +116,7 @@ module Rscons
|
|||||||
end
|
end
|
||||||
@build_root = "#{Rscons.application.build_dir}/#{@name}"
|
@build_root = "#{Rscons.application.build_dir}/#{@name}"
|
||||||
@n_threads = Rscons.application.n_threads
|
@n_threads = Rscons.application.n_threads
|
||||||
|
@build_steps = 0
|
||||||
self.class.register(self)
|
self.class.register(self)
|
||||||
if block
|
if block
|
||||||
Environment.running_environment = self
|
Environment.running_environment = self
|
||||||
@ -359,6 +360,7 @@ module Rscons
|
|||||||
@builder_sets << build_builder_set
|
@builder_sets << build_builder_set
|
||||||
end
|
end
|
||||||
@builder_sets.last << builder
|
@builder_sets.last << builder
|
||||||
|
@build_steps += 1
|
||||||
@build_targets[target] = builder
|
@build_targets[target] = builder
|
||||||
builder
|
builder
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user